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