summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/extern-c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/extern-c.cpp')
-rw-r--r--clang/test/CodeGenCXX/extern-c.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/extern-c.cpp b/clang/test/CodeGenCXX/extern-c.cpp
index 63bb177b84d..fefb216ea1c 100644
--- a/clang/test/CodeGenCXX/extern-c.cpp
+++ b/clang/test/CodeGenCXX/extern-c.cpp
@@ -66,3 +66,10 @@ extern "C" {
// CHECK-NOT: @unused
// CHECK-NOT: @duplicate_internal
}
+
+namespace PR19411 {
+ struct A { void f(); };
+ extern "C" void A::f() { void g(); g(); }
+ // CHECK-LABEL: @_ZN7PR194111A1fEv(
+ // CHECK: call void @g()
+}
OpenPOWER on IntegriCloud