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