2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / typedef1.C
blob83eab1625b8507f983600b3bee351fd210f9f60d
1 // PR c++/27572
2 // { dg-do compile }
4 void f1(typedef) {}        // { dg-error "9:typedef declaration" }
5 // { dg-error "no type" "" { target *-*-* } .-1 }
6 void f2(typedef x) {}      // { dg-error "9:typedef declaration" }
7 // { dg-error "type" "" { target *-*-* } .-1 }
8 void f3(typedef x[]) {}    // { dg-error "9:typedef declaration" }
9 // { dg-error "type" "" { target *-*-* } .-1 }
10 void f4(typedef int x) {}  // { dg-error "9:typedef declaration" }