Searched refs:BadX (Results 1 – 2 of 2) sorted by relevance
53 template<int N> struct BadX { struct54 BadX() { int a[-N]; } // expected-error {{array with a negative size}} in BadX() argument55 ~BadX() { int a[-N]; } // expected-error {{array with a negative size}} in ~BadX() argument60 void f() { (void)BadX<1>(); } // expected-note 2 {{instantiation}} in f()
53 template<int N> struct BadX { struct54 BadX() { int a[-N]; } // expected-error {{array with a negative size}} in BadX() function55 ~BadX() { int a[-N]; } // expected-error {{array with a negative size}} in ~BadX() argument60 void f() { (void)BadX<1>(); } // expected-note 2 {{instantiation}} in f()