Debian Codegraph @

gcc/testsuite/g++.dg/other/typedef1.C

raw
1 // PR c++/27572
2 // { dg-do compile }
3
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" }