aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/anonymous-union-member-initializer.cpp
blob: 2030f4053c90aec28ae298da2e5a88f640b11f2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -emit-llvm -o - %s

struct A {
  union {
    int a;
    void* b;
  };
  
  A() : a(0) { }
};

A a;