| 1 |
// PR c++/34268 |
| 2 |
// { dg-do compile } |
| 3 |
|
| 4 |
struct A |
| 5 |
{ |
| 6 |
__decltype (A); // { dg-error "must be an expression" } |
| 7 |
__decltype (~A); // { dg-error "must be an expression" } |
| 8 |
}; |
| 9 |
|
| 10 |
struct B |
| 11 |
{ |
| 12 |
__typeof__ (B); |
| 13 |
__typeof__ (~B); // { dg-error "expected primary-expression" } |
| 14 |
}; |