Fix typo.
authorMike Stump <mrs@gcc.gnu.org>
Tue, 5 Jun 2012 03:11:59 +0000 (03:11 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Tue, 5 Jun 2012 03:11:59 +0000 (03:11 +0000)
From-SVN: r188227

gcc/testsuite/g++.dg/cpp0x/regress/template-function1.C

index 66cbd4ba124efe8ae15cf7673b5393a5001ceda7..e7094d206e7997a8e5d33e766e63f7734d5e9df4 100644 (file)
@@ -23,7 +23,8 @@ char c1[1];
 C<c1, 0> c;
 
 template<const char *, int> struct D {};
-template<int N> struct D<__func__, N> {};      // { dg-error "cannot appear|is invalid|is not a valid|function scope|constant expression" }
+template<int N> struct D<__func__, N> {};      // { dg-error "(cannot appear|is invalid|is not a valid|function scope|constant expression)" }
+                                               // { dg-warning "function scope" "function scope" { target *-*-* } 26 }
 
 char d1[1];
 D<d1, 0> d;