summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pr7263-2.c
blob: 5ed10d0202a0292d7ae7301a82e89f1946fd443e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* PR 7263:  __extension__ keyword doesn't suppress warning on LL or ULL constants.  */
/* { dg-do compile } */
/* { dg-options "-std=c89 -pedantic-errors" } */
#include "pr7263-2.h"
unsigned long long /* { dg-error "ISO C90 does not support .long long." } */
bar ()
{
  return BIG_EXT;
}

unsigned long long /* { dg-error "ISO C90 does not support .long long." } */
bar2 ()
{
  return 0x1b27da572ef3cd86ULL; /* { dg-error "use of C99 long long integer constant" } */
}


unsigned long long /* { dg-error "ISO C90 does not support .long long." } */
bar3 ()
{
  return __extension__ (0x1b27da572ef3cd86ULL);
}

__extension__ unsigned long long 
bar4 ()
{
  return BIG; 
}