• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s
2 
3 __int8 x1  = 3i8;
4 __int16 x2 = 4i16;
5 __int32 x3 = 5i32;
6 __int64 x5 = 0x42i64;
7 __int64 x6 = 0x42I64;
8 __int64 x4 = 70000000i128;
9 
10 __int64 y = 0x42i64u;  // expected-error {{invalid suffix}}
11 __int64 w = 0x43ui64;
12 __int64 z = 9Li64;  // expected-error {{invalid suffix}}
13 __int64 q = 10lli64;  // expected-error {{invalid suffix}}
14 
15 // radar 7562363
16 #define ULLONG_MAX 0xffffffffffffffffui64
17 #define UINT 0xffffffffui32
18 #define USHORT 0xffffui16
19 #define UCHAR 0xffui8
20 
a()21 void a() {
22 	unsigned long long m = ULLONG_MAX;
23 	unsigned int n = UINT;
24         unsigned short s = USHORT;
25         unsigned char c = UCHAR;
26 }
27 
pr_7968()28 void pr_7968()
29 {
30   int var1 = 0x1111111e+1;
31   int var2 = 0X1111111e+1;
32   int var3 = 0xe+1;
33   int var4 = 0XE+1;
34 
35   int var5=    0\
36 x1234e+1;
37 
38   int var6=
39   /*expected-warning {{backslash and newline separated by space}} */    0\
40 x1234e+1;
41 }
42 
43