summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/parse/error26.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/parse/error26.C')
-rw-r--r--gcc/testsuite/g++.dg/parse/error26.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/parse/error26.C b/gcc/testsuite/g++.dg/parse/error26.C
index 81f7ba6d382..befaf3bb3b8 100644
--- a/gcc/testsuite/g++.dg/parse/error26.C
+++ b/gcc/testsuite/g++.dg/parse/error26.C
@@ -3,10 +3,12 @@
void foo()
{
- if (({int c[2];})) ; // { dg-error "7: error: ISO C.. forbids|20: error: could not convert" }
+ if (({int c[2];})) ; // { dg-error "7:ISO C.. forbids" "7" }
+ // { dg-error "20:could not convert" "20" { target *-*-* } 6 }
}
void bar()
{
- if (({})); // { dg-error "7: error: ISO C.. forbids|11: error: could not convert" }
+ if (({})); // { dg-error "7:ISO C.. forbids" "7" }
+ // { dg-error "11:could not convert" "11" { target *-*-* } 12 }
}
OpenPOWER on IntegriCloud