c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / parse / error32.C
blob1993c068b47045a0c4ad81f04889a0ed7aa6d909
1 /* PR c++/37555 */
2 /* { dg-do compile } */
4 struct A {};
6 typedef void (A::T)(); /* { dg-error "15:typedef name may not be a nested-name-specifier" } */
8 void foo()
10   T t;
11   t; /* { dg-error "was not declared" } */