summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/mangle-system-header.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-07 07:15:03 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-07 07:15:03 +0000
commita1e1622d1549c470acc999c4399456863e58a011 (patch)
treef800cbf71f4436c8566aed0f38fe8dbbbf694635 /test/CodeGenCXX/mangle-system-header.cpp
parentd8fe2d56fb5463c9d109e8c6dab2e98b06bee186 (diff)
Always mangle functions with special names. Fixes PR5420.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-system-header.cpp')
-rw-r--r--test/CodeGenCXX/mangle-system-header.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-system-header.cpp b/test/CodeGenCXX/mangle-system-header.cpp
new file mode 100644
index 0000000000..8c642bd075
--- /dev/null
+++ b/test/CodeGenCXX/mangle-system-header.cpp
@@ -0,0 +1,7 @@
+// RUN: clang-cc -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s
+
+// PR5420
+
+# 1 "fake_system_header.h" 1 3 4
+// CHECK: define void @_ZdlPvS_(
+void operator delete (void*, void*) {}