From 461a67fa15370a9ec88f8f8a240bf7c123bb2029 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:11:37 +0000 Subject: Vendor import of clang trunk r321017: https://llvm.org/svn/llvm-project/cfe/trunk@321017 --- test/CodeGenCXX/visibility-inlines-hidden.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/CodeGenCXX/visibility-inlines-hidden.cpp') diff --git a/test/CodeGenCXX/visibility-inlines-hidden.cpp b/test/CodeGenCXX/visibility-inlines-hidden.cpp index 6ea234807ec2..20e4a1f45e3c 100644 --- a/test/CodeGenCXX/visibility-inlines-hidden.cpp +++ b/test/CodeGenCXX/visibility-inlines-hidden.cpp @@ -162,3 +162,16 @@ namespace test6 { C::g(); } } + +namespace PR34811 { + template void tf() {} + + // CHECK-LABEL: define linkonce_odr hidden i8* @_ZN7PR348111fEv( + inline void *f() { + auto l = []() {}; + // CHECK-LABEL: define linkonce_odr hidden void @_ZN7PR348112tfIZNS_1fEvEUlvE_EEvv( + return (void *)&tf; + } + + void *p = (void *)f; +} -- cgit v1.2.3