summaryrefslogtreecommitdiff
path: root/test/FrontendC/2003-10-09-UnionInitializerBug.c
blob: 57e113a7cc29daea713e6ed9c09fa220f6873b57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null

struct Foo {
    unsigned a;
    unsigned b;
    unsigned c;
};

struct Bar {
    union {
        void **a;
        struct Foo b;
    }u;
};

struct Bar test = {0};