The i128 suffix isn't always available.
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 21 Jun 2014 22:49:50 +0000 (22:49 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 21 Jun 2014 22:49:50 +0000 (22:49 +0000)
This Lexer test unconditionally used the i128 integer literal suffix.
This suffix is only available to targets that have 128-bit arithmetic
support.

llvm-svn: 211446

clang/test/Lexer/ms-extensions.c

index 4d006e4..183d48f 100644 (file)
@@ -6,7 +6,9 @@ __int16 x2 = 4i16;
 __int32 x3 = 5i32;
 __int64 x5 = 0x42i64;
 __int64 x6 = 0x42I64;
+#ifdef __SIZEOF_INT128__
 __int64 x4 = 70000000i128;
+#endif
 
 __int64 y = 0x42i64u;  // expected-error {{invalid suffix}}
 __int64 w = 0x43ui64;