summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common
diff options
context:
space:
mode:
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-11 05:10:46 +0000
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-11 05:10:46 +0000
commit325b86d0dea618e99da02d94fe932e386fc28912 (patch)
treeab28ef9ddf888513dad4c681fd2135b4986ef8f2 /gcc/testsuite/c-c++-common
parent0db094ac080f7fa61eda15f53020fa020e7e704a (diff)
downloadgcc-325b86d0dea618e99da02d94fe932e386fc28912.tar.gz
Fix some of the existing Cilk tests for the new errors.
gcc/testsuite/: 2014-11-10 Andi Kleen <ak@linux.intel.com> * c-c++-common/cilk-plus/AN/misc.c (main): Handle new cilk errors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217335 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/c-c++-common')
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c
index 814786b9961..dcc414f1209 100644
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c
+++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c
@@ -73,13 +73,13 @@ int main (void)
while (ii != array2[1:x:3][1:2:1]) /* { dg-error "cannot be used as a condition for while statement" } */
x = 2;
- do { /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c } } */
+ do {
x = 3;
- } while (ii != array2[:][:]); /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c++ } } */
+ } while (ii != array2[:][:]); /* { dg-error "cannot be used as a condition for a do-while statement" } */
- do { /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c } } */
+ do {
x = 2;
- } while (ii != (x + array2[:][1:x:2]) + 2); /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c++ } } */
+ } while (ii != (x + array2[:][1:x:2]) + 2); /* { dg-error "cannot be used as a condition for a do-while statement" } */
do {
x += 3;