summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend/2006-11-20-GlobalSymbols.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-17 06:20:38 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-17 06:20:38 +0000
commit5bc753e26b7973d5d4534b5a7d8c44b908aea7de (patch)
tree4e0746a51dc7b50c76485fd5772286c27bde1c5b /llvm/test/C++Frontend/2006-11-20-GlobalSymbols.cpp
parent396156e00b3eb1e6b7541cf602b667b0e7028d63 (diff)
downloadbcm5719-llvm-5bc753e26b7973d5d4534b5a7d8c44b908aea7de.tar.gz
bcm5719-llvm-5bc753e26b7973d5d4534b5a7d8c44b908aea7de.zip
For PR1558:
Move tests that have C/C++ sources into the appropriate directory. This allows them to be selected for testing based on whether llvm-gcc is present or not. llvm-svn: 39963
Diffstat (limited to 'llvm/test/C++Frontend/2006-11-20-GlobalSymbols.cpp')
-rw-r--r--llvm/test/C++Frontend/2006-11-20-GlobalSymbols.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2006-11-20-GlobalSymbols.cpp b/llvm/test/C++Frontend/2006-11-20-GlobalSymbols.cpp
new file mode 100644
index 00000000000..fc896b330a4
--- /dev/null
+++ b/llvm/test/C++Frontend/2006-11-20-GlobalSymbols.cpp
@@ -0,0 +1,10 @@
+// PR1013
+// Check to make sure debug symbols use the correct name for globals and
+// functions. Will not assemble if it fails to.
+// RUN: %llvmgcc -O0 -g -c %s
+
+int foo __asm__("f\001oo");
+
+int bar() {
+ return foo;
+}
OpenPOWER on IntegriCloud