summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/auto11.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/auto11.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/auto11.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/auto11.C b/gcc/testsuite/g++.dg/cpp0x/auto11.C
index bd21daef0c..208f512a68 100644
--- a/gcc/testsuite/g++.dg/cpp0x/auto11.C
+++ b/gcc/testsuite/g++.dg/cpp0x/auto11.C
@@ -1,5 +1,5 @@
// PR c++/38256
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
template<int> struct A
{
@@ -8,5 +8,5 @@ template<int> struct A
void foo()
{
- A<0>().operator auto(); // { dg-error "auto.*conversion" }
+ A<0>().operator auto(); // { dg-error "auto" }
}