2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o %t
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep "{ i8\* null, i32 1024 }" %t
|
2009-07-27 13:54:15 +08:00
|
|
|
// RUN: grep "i32 0, i32 22" %t
|
2009-01-30 20:58:18 +08:00
|
|
|
|
2009-01-30 01:44:32 +08:00
|
|
|
struct foo {
|
|
|
|
void *a;
|
|
|
|
int b;
|
|
|
|
};
|
|
|
|
|
|
|
|
union { int i; float f; } u = { };
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
union { int i; float f; } u2 = { };
|
|
|
|
static struct foo foo = {
|
|
|
|
.b = 1024,
|
|
|
|
};
|
|
|
|
}
|
2009-03-28 07:40:29 +08:00
|
|
|
|
|
|
|
int b[2] = {
|
|
|
|
[1] 22
|
|
|
|
};
|