diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-21 23:32:05 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-21 23:32:05 +0000 |
commit | 5482ee7f375c872fe948d10fb12e6bea283ff92e (patch) | |
tree | e4116bdda07df87f359ca25e7ba4c8ece0cf5aee /test | |
parent | 47f76959dbc864aac90c3ee86faa844a2a973f39 (diff) | |
download | clang-5482ee7f375c872fe948d10fb12e6bea283ff92e.tar.gz clang-5482ee7f375c872fe948d10fb12e6bea283ff92e.tar.bz2 clang-5482ee7f375c872fe948d10fb12e6bea283ff92e.tar.xz |
Make MS i128 suffix test from r211446 more robust
We want to catch both negative and positive failure conditions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Lexer/ms-extensions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Lexer/ms-extensions.c b/test/Lexer/ms-extensions.c index 183d48fde9..ebcf0f4999 100644 --- a/test/Lexer/ms-extensions.c +++ b/test/Lexer/ms-extensions.c @@ -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@+2 {{__int128 is not supported on this target}} #endif +__int64 x4 = 70000000i128; __int64 y = 0x42i64u; // expected-error {{invalid suffix}} __int64 w = 0x43ui64; |