diff options
Diffstat (limited to 'test/Sema/int-arith-convert.c')
-rw-r--r-- | test/Sema/int-arith-convert.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Sema/int-arith-convert.c b/test/Sema/int-arith-convert.c new file mode 100644 index 000000000000..5bbab7d9af96 --- /dev/null +++ b/test/Sema/int-arith-convert.c @@ -0,0 +1,12 @@ +// RUN: clang-cc -triple=i686-linux-gnu -fsyntax-only -verify %s + +// Check types are the same through redeclaration +unsigned long x; +__typeof(1u+1l) x; + +unsigned y; +__typeof(1+1u) y; +__typeof(1u+1) y; + +long long z; +__typeof(1ll+1u) z; |