gcc/testsuite/g++.dg/parse/typedef8.C
raw| 1 | //PR c++ 29024 |
| 2 | |
| 3 | typedef static int a; // { dg-error "'static' specifier conflicts with 'typedef'" } |
| 4 | typedef register int b; // { dg-error "'register' specifier conflicts with 'typedef'" } |
| 5 | typedef extern int c; // { dg-error "'extern' specifier conflicts with 'typedef'" } |
| 6 | static typedef int a; // { dg-error "'typedef' specifier conflicts with 'static'" } |
| 7 | |
| 8 | void foo() |
| 9 | { |
| 10 | typedef auto int bar; // { dg-error "'auto' specifier conflicts with 'typedef'|two or more data types" } |
| 11 | } |