From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Sema/128bitint.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 clang/test/Sema/128bitint.c (limited to 'clang/test/Sema/128bitint.c') diff --git a/clang/test/Sema/128bitint.c b/clang/test/Sema/128bitint.c new file mode 100644 index 0000000..89d3ee2 --- /dev/null +++ b/clang/test/Sema/128bitint.c @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-apple-darwin9 %s +typedef int i128 __attribute__((__mode__(TI))); +typedef unsigned u128 __attribute__((__mode__(TI))); + +int a[((i128)-1 ^ (i128)-2) == 1 ? 1 : -1]; +int a[(u128)-1 > 1LL ? 1 : -1]; + +// PR5435 +__uint128_t b = (__uint128_t)-1; + +// PR11916: Support for libstdc++ 4.7 +__int128 i = (__int128)0; +unsigned __int128 u = (unsigned __int128)-1; -- cgit v1.2.3