xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/int-arith-convert.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple=i686-linux-gnu -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc // expected-no-diagnostics
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc // Check types are the same through redeclaration
5*f4a2713aSLionel Sambuc unsigned long x;
6*f4a2713aSLionel Sambuc __typeof(1u+1l) x;
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc unsigned y;
9*f4a2713aSLionel Sambuc __typeof(1+1u) y;
10*f4a2713aSLionel Sambuc __typeof(1u+1) y;
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc long long z;
13*f4a2713aSLionel Sambuc __typeof(1ll+1u) z;
14