| 1 |
/* Test for broken long long suffixes. */ |
| 2 |
/* Origin: Joseph Myers <[email protected]> */ |
| 3 |
|
| 4 |
/* The following are valid integer suffixes, according to C99: |
| 5 |
|
| 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 |
| 13 |
|
| 14 |
The following are not but have been accepted by GCC in the past: |
| 15 |
|
| 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) |
| 18 |
|
| 19 |
(cpplib gets this right when processing #if expressions.) |
| 20 |
|
| 21 |
*/ |
| 22 |
|
| 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" } */ |