summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/anonymous-union-member-initializer.cpp
blob: ea3eafc9955320271c1b067bfb07ad4663f81bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm -o - %s

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

A a;
OpenPOWER on IntegriCloud