OSDN Git Service

PR c++/37256
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / decltype7.C
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 };