llvm-project/clang/test/CodeGenCXX/template-anonymous-union-me...

11 lines
128 B
C++

// RUN: clang-cc -emit-llvm -o %t %s
template <typename T>
class A
{
union { void *d; };
A() : d(0) { }
};
A<int> a0;