freebsd-dev/test/CodeGenCXX/template-anonymous-union-member-initializer.cpp
2009-10-14 18:03:49 +00:00

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;