blob: ef0436744dae5e49374e92ecd9023fd5583b0a18 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc < %s -emit-llvm
Eli Friedman06e863f2008-05-13 23:18:27 +00002
3int* a = &(int){1};
4struct 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
8int xxx() {
9int* a = &(int){1};
10struct s {int a, b, c;} * b = &(struct s) {1, 2, 3};
11_Complex double * x = &(_Complex double){1.0f};
Eli Friedman06e863f2008-05-13 23:18:27 +000012}