summaryrefslogtreecommitdiff
path: root/test/FrontendC/2003-10-09-UnionInitializerBug.c
blob: 90dbd37f0d61830a34681695c26af8fc607a64b7 (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 -f -o /dev/null

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

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

struct Bar test = {0};