Commit 30055330 by Andi Kleen Committed by Andi Kleen

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.

From-SVN: r217335
parent 784b508c
2014-11-10 Andi Kleen <ak@linux.intel.com>
* c-c++-common/cilk-plus/AN/misc.c (main): Handle
new cilk errors.
2014-11-10 Andi Kleen <ak@linux.intel.com>
* c-c++-common/cilk-plus/CK/errors.c: New test.
2014-11-11 Uros Bizjak <ubizjak@gmail.com>
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment