Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype-33837.C
blob35689fbc279352fcc15d2a5f435be2a2b645b64a
1 // { dg-options -std=c++0x }
2 // PR c++/33837
3 void foo()
5   __decltype (A::foo()); // { dg-error "was not declared|expected initializer" }
6   __decltype (B); // { dg-error "was not declared" }