Chris Lattner | d4dc267 | 2008-01-02 21:54:09 +0000 | [diff] [blame] | 1 | // RUN: clang %s -emit-llvm |
2 | |||||
3 | // PR1895 | ||||
4 | // sizeof function | ||||
5 | int zxcv(void); | ||||
6 | int x=sizeof(zxcv); | ||||
7 | int y=__alignof__(zxcv); | ||||
8 | |||||
Chris Lattner | 17c0cb0 | 2008-01-03 06:36:51 +0000 | [diff] [blame] | 9 | |
10 | void *test(int *i) { | ||||
11 | short a = 1; | ||||
12 | i += a; | ||||
13 | i + a; | ||||
14 | a + i; | ||||
15 | } | ||||
16 | |||||
Chris Lattner | 6b79f4e | 2008-01-30 07:01:17 +0000 | [diff] [blame] | 17 | _Bool test2b; |
18 | int test2() {if (test2b);} | ||||
19 |