comparison gcc/testsuite/g++.dg/parse/typedef8.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
3 typedef static int a; // { dg-error "conflicting" } 3 typedef static int a; // { dg-error "conflicting" }
4 typedef register int b; // { dg-error "conflicting" } 4 typedef register int b; // { dg-error "conflicting" }
5 typedef extern int c; // { dg-error "conflicting" } 5 typedef extern int c; // { dg-error "conflicting" }
6 static typedef int a; // { dg-error "conflicting" } 6 static typedef int a; // { dg-error "conflicting" }
7 7
8 int foo() 8 void foo()
9 { 9 {
10 typedef auto int bar; // { dg-error "conflicting|two or more data types" } 10 typedef auto int bar; // { dg-error "conflicting|two or more data types" }
11 } 11 }