| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// { dg-options "" } |
| 3 |
|
| 4 |
void |
| 5 |
foo (int n) |
| 6 |
{ |
| 7 |
__builtin_classify_type (enum E { E1, E2 }); // { dg-error "types may not be defined in '__builtin_classify_type' calls" } |
| 8 |
__builtin_classify_type (struct S { int s; });// { dg-error "types may not be defined in '__builtin_classify_type' calls" } |
| 9 |
__builtin_classify_type (union U { int u; }); // { dg-error "types may not be defined in '__builtin_classify_type' calls" } |
| 10 |
__builtin_classify_type (int [2 * n + 36]); |
| 11 |
} |