add missing test for "typedef auto"
authorLee Millward <lmillward@gcc.gnu.org>
Wed, 11 Oct 2006 19:43:13 +0000 (19:43 +0000)
committerLee Millward <lmillward@gcc.gnu.org>
Wed, 11 Oct 2006 19:43:13 +0000 (19:43 +0000)
From-SVN: r117642

gcc/testsuite/g++.dg/parse/typedef8.C

index 8c46bad8cae9b0b5248831019415c32ee1f1d1a5..6ff26febbc381acc8acf637bbb49c45bb430b40b 100644 (file)
@@ -4,3 +4,8 @@ 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" }
+}