From: Andi Kleen Date: Tue, 11 Nov 2014 05:10:46 +0000 (+0000) Subject: Fix some of the existing Cilk tests for the new errors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=300553307af73f9a4ba83affc62c8263d3b90f9e;p=gcc.git Fix some of the existing Cilk tests for the new errors. gcc/testsuite/: 2014-11-10 Andi Kleen * c-c++-common/cilk-plus/AN/misc.c (main): Handle new cilk errors. From-SVN: r217335 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 56214a19858..3672bc62823 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-10 Andi Kleen + + * c-c++-common/cilk-plus/AN/misc.c (main): Handle + new cilk errors. + 2014-11-10 Andi Kleen * c-c++-common/cilk-plus/CK/errors.c: New test. 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;