2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / noncompile / const-ll-1.c
blobcac3af6aa76cb59a4785d6df4b80e14e1b1bb112
1 /* Test for broken long long suffixes. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
4 /* The following are valid integer suffixes, according to C99:
6 no suffix
7 u or U
8 ul, uL, Ul or UL
9 ull, uLL, Ull or ULL
10 l or L
11 lu, lU, Lu or LU
12 llu, llU, LLu or LLU
14 The following are not but have been accepted by GCC in the past:
16 lul and case variants (the 'l's being separated by a 'u')
17 lL, Ll and variants with a 'u' (mixed case pair of 'l's)
19 (cpplib gets this right when processing #if expressions.)
23 unsigned long long a = 1LUL; /* { dg-error "lul|LUL" "error for LUL suffix" } */
24 long long b = 1Ll; /* { dg-error "Ll" "error for Ll suffix" } */