freebsd-dev/test/CodeGenCXX/template-anonymous-union-member-initializer.cpp
2010-05-04 16:12:48 +00:00

12 lines
138 B
C++

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