llvm-for-llvmta/tools/clang/test/CodeGenCXX/template-anonymous-union-me...

12 lines
138 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm -o %t %s
template <typename T>
class A
{
union { void *d; };
public:
A() : d(0) { }
};
A<int> a0;