summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/typedef8.C
blob: 6ff26febbc381acc8acf637bbb49c45bb430b40b (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" }
}