OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [noncompile/] [const-ll-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Test for broken long long suffixes.  */
2
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
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" } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.