From 38d6f2e7f2ce51a5b3836d26596c6c34a3288752 Mon Sep 17 00:00:00 2001 From: dim 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/inline-functions.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/CodeGenCXX/inline-functions.cpp') diff --git a/test/CodeGenCXX/inline-functions.cpp b/test/CodeGenCXX/inline-functions.cpp index 622cfa9..20da1f6 100644 --- a/test/CodeGenCXX/inline-functions.cpp +++ b/test/CodeGenCXX/inline-functions.cpp @@ -121,3 +121,18 @@ struct TypeWithInlineMethods { // CHECK-NOT: _ZN21TypeWithInlineMethods12NonStaticFunEv void NonStaticFun() { StaticFun(); } }; + +namespace PR22959 { +template +struct S; + +S Foo(); + +template +struct S { + friend S Foo(); +}; + +__attribute__((used)) inline S Foo() { return S(); } +// CHECK-LABEL: define linkonce_odr void @_ZN7PR229593FooEv( +} -- cgit v1.1