summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-08-19 23:41:35 +0000
committerEric Christopher <echristo@apple.com>2011-08-19 23:41:35 +0000
commit16d482ebe8abb5a8eaf5d3407e90c96e6afa397b (patch)
tree64ab951fba84642023f720914ea19c36e1ed43f9 /test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp
parentc0b850c2f729521d1b70c7dd21cda135286ef904 (diff)
downloadclang-16d482ebe8abb5a8eaf5d3407e90c96e6afa397b.tar.gz
Migrate, FileCheckize and update:
2005-02-11-AnonymousUnion.cpp 2005-02-13-BadDynamicInit.cpp 2005-02-14-BitFieldOffset.cpp 2005-02-19-BitfieldStructCrash.cpp 2005-02-19-UnnamedVirtualThunkArgument.cpp 2005-02-20-BrokenReferenceTest.cpp 2006-03-01-GimplifyCrash.cpp 2006-03-06-C++RecurseCrash.cpp 2006-09-12-OpaqueStructCrash.cpp 2006-10-30-ClassBitfield.cpp 2006-11-20-GlobalSymbols.cpp 2006-11-20-GlobalSymbols.ll 2006-11-30-ConstantExprCrash.cpp from llvm/test/FrontendC++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp')
-rw-r--r--test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp b/test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp
new file mode 100644
index 0000000000..dfca59dc96
--- /dev/null
+++ b/test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp
@@ -0,0 +1,11 @@
+// PR1013
+// Check to make sure debug symbols use the correct name for globals and
+// functions. Will not assemble if it fails to.
+// RUN: %clang_cc1 -emit-llvm -g -o - %s | FileCheck %s
+
+// CHECK: @"\01f\01oo"
+int foo __asm__("f\001oo");
+
+int bar() {
+ return foo;
+}