diff mbox

[4/5] Fix some of the existing Cilk tests for the new errors.

Message ID 1412224018-25368-4-git-send-email-andi@firstfloor.org
State New
Headers show

Commit Message

Andi Kleen Oct. 2, 2014, 4:26 a.m. UTC
From: Andi Kleen <ak@linux.intel.com>

gcc/testsuite/:

2014-09-30  Andi Kleen  <ak@linux.intel.com>

	* c-c++-common/cilk-plus/AN/misc.c (main): Handle
	new cilk errors.
---
 gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Jeff Law Oct. 2, 2014, 6:01 p.m. UTC | #1
On 10/01/14 22:26, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> gcc/testsuite/:
>
> 2014-09-30  Andi Kleen  <ak@linux.intel.com>
>
> 	* c-c++-common/cilk-plus/AN/misc.c (main): Handle
> 	new cilk errors.
OK.
Jeff
diff mbox

Patch

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 814786b..dcc414f 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;