OSDN Git Service

* [various.C]: Adjust for C++11 mode.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / typedef8.C
1 //PR c++ 29024
2
3 typedef static int a;   // { dg-error "conflicting" }
4 typedef register int b; // { dg-error "conflicting" }
5 typedef extern int c;   // { dg-error "conflicting" }
6 static typedef int a;   // { dg-error "conflicting" }
7
8 int foo()
9 {
10   typedef auto int bar; // { dg-error "conflicting|two or more data types" }
11 }