diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-04 06:24:32 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-04 06:24:32 +0000 |
| commit | f016bbcc610ba2d468b2966fd77831415c23149c (patch) | |
| tree | cb4e5012065e050fe3539b379bfc7e292ac5f4c3 /clang/test/Sema/128bitint.c | |
| parent | 0e60cd78cc3c071870bba865663d09c09f184544 (diff) | |
| download | bcm5719-llvm-f016bbcc610ba2d468b2966fd77831415c23149c.tar.gz bcm5719-llvm-f016bbcc610ba2d468b2966fd77831415c23149c.zip | |
For PR11916: Add support for g++'s __int128 keyword. Unlike __int128_t, this is
a type specifier and can be combined with unsigned. This allows libstdc++4.7 to
be used with clang in c++98 mode.
Several other changes are still required for libstdc++4.7 to work with clang in
c++11 mode.
llvm-svn: 153999
Diffstat (limited to 'clang/test/Sema/128bitint.c')
| -rw-r--r-- | clang/test/Sema/128bitint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/128bitint.c b/clang/test/Sema/128bitint.c index fe83d97ca4f..89d3ee20128 100644 --- a/clang/test/Sema/128bitint.c +++ b/clang/test/Sema/128bitint.c @@ -7,3 +7,7 @@ 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; |

