Eli Friedman | 06e863f | 2008-05-13 23:18:27 +0000 | [diff] [blame] | 1 | // RUN: clang < %s -emit-llvm |
2 | |||||
3 | int* a = &(int){1}; | ||||
4 | struct s {int a, b, c;} * b = &(struct s) {1, 2, 3}; | ||||
5 | // Not working; complex constants are broken | ||||
6 | // _Complex double * x = &(_Complex double){1.0f}; | ||||
7 | |||||
8 | int xxx() { | ||||
9 | int* a = &(int){1}; | ||||
10 | struct s {int a, b, c;} * b = &(struct s) {1, 2, 3}; | ||||
11 | _Complex double * x = &(_Complex double){1.0f}; | ||||
Eli Friedman | 06e863f | 2008-05-13 23:18:27 +0000 | [diff] [blame] | 12 | } |