summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-static-fns.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-04-12 00:36:10 +0000
committerEric Christopher <echristo@apple.com>2012-04-12 00:36:10 +0000
commit5d7fe46ceb6f6c4d0de406e97b5084d30c7b0e2f (patch)
tree6730adfde592187f6a7effa31d07083605e1080a /clang/test/CodeGenCXX/debug-info-static-fns.cpp
parentdb1554c035fe299074955ca4eded0f6b4c3e432a (diff)
downloadbcm5719-llvm-5d7fe46ceb6f6c4d0de406e97b5084d30c7b0e2f.tar.gz
bcm5719-llvm-5d7fe46ceb6f6c4d0de406e97b5084d30c7b0e2f.zip
Testcase for previous commit.
rdar://11079003 llvm-svn: 154571
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-static-fns.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-static-fns.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-static-fns.cpp b/clang/test/CodeGenCXX/debug-info-static-fns.cpp
new file mode 100644
index 00000000000..485d28aa7b7
--- /dev/null
+++ b/clang/test/CodeGenCXX/debug-info-static-fns.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
+
+namespace A {
+ static int a(int b) { return b + 4; }
+
+ int b(int c) { return c + a(c); }
+}
+
+// Verify that a is present and mangled.
+// CHECK: metadata !{i32 786478, i32 0, metadata !6, metadata !"a", metadata !"a", metadata !"_ZN1AL1aEi", metadata !7, i32 4, metadata !8, i1 true, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 (i32)* @_ZN1AL1aEi, null, null, metadata !14, i32 4} ; [ DW_TAG_subprogram ]
OpenPOWER on IntegriCloud