c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / parse / typedef9.C
blob2e7d672434b360343ffce807b2a9db7e5175851d
1 // PR c++/38794
2 // { dg-do compile }
4 typedef void foo () {}  // { dg-error "14:typedef may not be a function definition" }
5 struct S
7   typedef int bar (void) { return 0; } // { dg-error "15:typedef may not be a member function definition" }
8 };