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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [noncompile/] [const-ll-1.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* 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.