summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c')
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c69
1 files changed, 0 insertions, 69 deletions
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c
deleted file mode 100644
index f07b49a2775..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* PR c/70436 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wparentheses" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-int a, b, c;
-void bar (void);
-void baz (void);
-
-void
-f1 (void)
-{
- if (a) /* { dg-warning "ambiguous" } */
- _Cilk_for (int i = 0; i < 10; i++)
- if (b)
- bar ();
- else
- baz ();
-
- if (a)
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- else
- baz ();
- }
-
- if (a)
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- }
- else
- baz ();
-}
-
-void
-f2 (void)
-{
- if (a) /* { dg-warning "ambiguous" } */
- #pragma cilk grainsize = 2
- _Cilk_for (int i = 0; i < 10; i++)
- if (b)
- bar ();
- else
- baz ();
-
- if (a)
- #pragma cilk grainsize = 2
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- else
- baz ();
- }
-
- if (a)
- #pragma cilk grainsize = 2
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- }
- else
- baz ();
-}