static_assert(alignof(Y<int, char, 1>) == alignof(int), ""); // expected-note {{in instantiation of}}
void pr16992 () {
- int x = alignof int; // expected-error{{missed parenthesis around the type name in alignof}}
+ int x = alignof int; // expected-error{{missed parentheses around type name in alignof}}
}
struct pr16992 { int x; };
void func_16992 () {
- int x1 = sizeof int; // expected-error{{missed parenthesis around the type name in sizeof}}
- int x2 = sizeof struct pr16992; // expected-error{{missed parenthesis around the type name in sizeof}}
- int x3 = __alignof int; // expected-error{{missed parenthesis around the type name in __alignof}}
- int x4 = _Alignof int; // expected-error{{missed parenthesis around the type name in _Alignof}}
+ int x1 = sizeof int; // expected-error{{missed parentheses around type name in sizeof}}
+ int x2 = sizeof struct pr16992; // expected-error{{missed parentheses around type name in sizeof}}
+ int x3 = __alignof int; // expected-error{{missed parentheses around type name in __alignof}}
+ int x4 = _Alignof int; // expected-error{{missed parentheses around type name in _Alignof}}
}