aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr94755.c
blob: 3520864c77a9ad4b3e21482bc1ca166f12891d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/94755 */
/* { dg-do compile } */

extern void foo (void);

void
bar (double x)
{
  if (x == __builtin_speculation_safe_value ())	/* { dg-error "too few arguments to function" } */
    foo ();
}