diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/cilk-plus/AN')
-rw-r--r-- | gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c | 4 | ||||
-rwxr-xr-x | gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c | 9 |
2 files changed, 4 insertions, 9 deletions
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c index 83325a77501..89a3d57ebdd 100644 --- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c +++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c @@ -2,13 +2,13 @@ /* { dg-do compile } */ /* { dg-options "-fcilkplus" } */ -int foo1 () +void foo1 () { int a; a = __sec_reduce_add (1); /* { dg-error "Invalid builtin arguments" } */ } -int foo2 () +void foo2 () { int a; a = __sec_reduce_add (); /* { dg-error "Invalid builtin arguments" } */ diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c index a956d0e18ab..b47de1e7ebc 100755 --- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c +++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c @@ -4,8 +4,7 @@ int A[10]; -int foo () { - +void foo () { /* C compiler uses the term "undeclared" whereas C++ compiler uses "not declared". Thus, grepping for declared seem to be the easiest. */ char c = (char)N; /* { dg-error "declared" } */ @@ -15,12 +14,8 @@ int foo () { A[l:s:c]; } -int foo1 (int N) { - +void foo1 (int N) { char c = (char)N; short s = (short)N; A[l:s:c]; /* { dg-error "declared" } */ } - - - |