r211449 - Make MS i128 suffix test from r211446 more robust
Alp Toker
alp at nuanti.com
Sat Jun 21 16:32:05 PDT 2014
Author: alp
Date: Sat Jun 21 18:32:05 2014
New Revision: 211449
URL: http://llvm.org/viewvc/llvm-project?rev=211449&view=rev
Log:
Make MS i128 suffix test from r211446 more robust
We want to catch both negative and positive failure conditions.
Modified:
cfe/trunk/test/Lexer/ms-extensions.c
Modified: cfe/trunk/test/Lexer/ms-extensions.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/ms-extensions.c?rev=211449&r1=211448&r2=211449&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/ms-extensions.c (original)
+++ cfe/trunk/test/Lexer/ms-extensions.c Sat Jun 21 18:32:05 2014
@@ -1,14 +1,16 @@
// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s
// RUN: %clang_cc1 -fsyntax-only -verify -fms-compatibility %s
+// RUN: %clang_cc1 -fsyntax-only -verify -triple i386-pc-win32 -fms-compatibility %s
__int8 x1 = 3i8;
__int16 x2 = 4i16;
__int32 x3 = 5i32;
__int64 x5 = 0x42i64;
__int64 x6 = 0x42I64;
-#ifdef __SIZEOF_INT128__
-__int64 x4 = 70000000i128;
+#ifndef __SIZEOF_INT128__
+// expected-error at +2 {{__int128 is not supported on this target}}
#endif
+__int64 x4 = 70000000i128;
__int64 y = 0x42i64u; // expected-error {{invalid suffix}}
__int64 w = 0x43ui64;
More information about the cfe-commits
mailing list