From d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 21 May 2015 06:58:08 +0000 Subject: Vendor import of clang RELEASE_361/final tag r237755 (effectively, 3.6.1 release): https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_361/final@237755 --- test/CodeGenCXX/trivial-constructor-init.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/CodeGenCXX/trivial-constructor-init.cpp') diff --git a/test/CodeGenCXX/trivial-constructor-init.cpp b/test/CodeGenCXX/trivial-constructor-init.cpp index 9130e4e5d959e..da17799dfa425 100644 --- a/test/CodeGenCXX/trivial-constructor-init.cpp +++ b/test/CodeGenCXX/trivial-constructor-init.cpp @@ -32,3 +32,17 @@ static C c[4]; int main() { } + +namespace PR22793 { +template +struct foo { +protected: +// CHECK-NOT: _ZN7PR227933fooIiED2Ev + ~foo() = default; + friend void func(); +}; + +void func() { foo f; } + +template struct foo; +} -- cgit v1.2.3