aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2003-10-09-UnionInitializerBug.c
blob: a14fd084c699fb94797a7c6e003efe3511e83615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null

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

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

struct Bar test = {0};