Lines Matching defs:int
7 struct S { int n; };
8 struct T { int n; };
10 int n;
22 int(n) // expected-error {{expected ';'}}
39 constexpr T(int) {}
42 constexpr operator int() const { return 4; }
54 enum E : int { a = 1, b = 2, c = 3, d }; // ok, defines an enum
58 enum E : int { a = 1 }; // ok, defines an enum
63 enum E : int { a = 1 } { b = 2 }; // expected-error {{expected ';' after enum}} expected-error {{expected member name}}
67 enum E : int { 1 }; // expected-error {{expected identifier}}
75 enum E : int { a = U() }; // expected-error {{no viable conversion}}
81 enum E : int { a = id(U()) }; // expected-error {{no viable conversion}}
86 typedef int n;
87 int a;
90 S(int);
92 int n;
100 S(a)(int())->n; // ok, expression; expected-warning{{expression result unused}}
102 auto(b)(int())->n; // ok, function declaration
121 void i(int(T...)); // expected-note {{here}}
122 void i(int(T...a)); // expected-error {{redeclared}}
123 void i(int(T, ...)); // function type, expected-error {{unexpanded parameter pack}}
124 void i(int(T, ...a)); // expected-error {{expected ')'}} expected-note {{to match}} expected-error {{unexpanded parameter pack}}
125 void j(int(int...)); // function type, ok
126 void j(int(int...a)); // expected-error {{does not contain any unexpanded parameter packs}}
127 void j(T(int...)); // expected-error {{unexpanded parameter pack}}
129 void k(int(...)(T)); // expected-error {{cannot return function type}}
130 void k(int ...(T));
131 void l(int(&...)(T)); // expected-warning {{ISO C++11 requires a parenthesized pack declaration to have a name}}
132 void l(int(*...)(T)); // expected-warning {{ISO C++11 requires a parenthesized pack declaration to have a name}}
133 void l(int(S<int>::*...)(T)); // expected-warning {{ISO C++11 requires a parenthesized pack declaration to have a name}}