Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple=i686-linux-gnu -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Eli Friedman | ad74a75 | 2008-06-28 06:23:08 +0000 | [diff] [blame] | 3 | |
4 | // Check types are the same through redeclaration | ||||
5 | unsigned long x; | ||||
6 | __typeof(1u+1l) x; | ||||
7 | |||||
8 | unsigned y; | ||||
9 | __typeof(1+1u) y; | ||||
10 | __typeof(1u+1) y; | ||||
11 | |||||
12 | long long z; | ||||
13 | __typeof(1ll+1u) z; |