summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/template-anonymous-union-member-initializer.cpp
blob: 41ae08470a3deaa040e7af0d3e14bd2402510c3e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -emit-llvm -o %t %s
template <typename T>
class A
{
    union { void *d; };

public:
    A() : d(0) { }
};

A<int> a0;