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

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