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

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

A<int> a0;