summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-02-06 04:52:27 +0000
committerAnders Carlsson <andersca@mac.com>2010-02-06 04:52:27 +0000
commit2c4de4c31eb1069d76314881d1fb79bdfe98c953 (patch)
tree904a83f009a83943121bd87d67ceff6bf8a82042 /clang/test/CodeGenCXX/mangle.cpp
parentbdfcacbe8f6631360243c0ff8429c06f77a1aa94 (diff)
downloadbcm5719-llvm-2c4de4c31eb1069d76314881d1fb79bdfe98c953.tar.gz
bcm5719-llvm-2c4de4c31eb1069d76314881d1fb79bdfe98c953.zip
Only append 'L' for internal variable declarations, not all declarations. (Found by the mangle checker, yay)
llvm-svn: 95485
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp
index 8f45175ae89..07183782e75 100644
--- a/clang/test/CodeGenCXX/mangle.cpp
+++ b/clang/test/CodeGenCXX/mangle.cpp
@@ -372,3 +372,7 @@ namespace test1 {
// CHECK: define void @_ZN5test11fINS_1XEiEEvT_IT0_E
template void f(X<int>);
}
+
+// CHECK: define internal void @_Z27functionWithInternalLinkagev()
+static void functionWithInternalLinkage() { }
+void g() { functionWithInternalLinkage(); }
OpenPOWER on IntegriCloud