summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c
blob: 89a3d57ebdd129aab2f638c10393be07a946d5b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/57541 */
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

void foo1 ()
{
  int a;
  a = __sec_reduce_add (1); /* { dg-error "Invalid builtin arguments" } */
}

void foo2 ()
{
  int a;
  a = __sec_reduce_add (); /* { dg-error "Invalid builtin arguments" } */
}