summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtin-constant_p-1.c
blob: f177fe34b2cf69e9262999406c44a837ee91d8f5 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

int main()
{
  if (__builtin_constant_p ()) /* { dg-error "too few arguments" } */
    return 0;
  if (__builtin_constant_p (5, 6)) /* { dg-error "too many arguments" } */
    return 1;
  return 0;
}