aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/parse/typedef8.C
blob: 4c1823e87b97b35eec602a2d48a7c444bffb85ac (plain)
1
2
3
4
5
6
7
8
9
10
11
//PR c++ 29024

typedef static int a;   // { dg-error "conflicting" }
typedef register int b; // { dg-error "conflicting" }
typedef extern int c;   // { dg-error "conflicting" }
static typedef int a;   // { dg-error "conflicting" }

int foo()
{
  typedef auto int bar; // { dg-error "conflicting|two or more data types" }
}