]> granicus.if.org Git - clang/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211446 91177308-0d34-0410-b5e6-96231b3b80d8

test/Lexer/ms-extensions.c

index 4d006e4b928c8acdba59f34a8325b691bcd74c9e..183d48fde9f90671bef37b70b67ee6f833e67491 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;