summaryrefslogtreecommitdiff
path: root/test/FrontendC
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-10-14 00:10:54 +0000
committerDale Johannesen <dalej@apple.com>2009-10-14 00:10:54 +0000
commit0ccfc4c0581468832090464b92eba2085e9f5003 (patch)
tree2994e6edf13f4f6e66b4f79770642cfeb58bd7d2 /test/FrontendC
parent1b1764b3f7edd26a90991993255536dd7417a5c6 (diff)
downloadllvm-0ccfc4c0581468832090464b92eba2085e9f5003.tar.gz
llvm-0ccfc4c0581468832090464b92eba2085e9f5003.tar.bz2
llvm-0ccfc4c0581468832090464b92eba2085e9f5003.tar.xz
Testcases for msasm bit (llvm-gcc 84062).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/msasm.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/FrontendC/msasm.c b/test/FrontendC/msasm.c
new file mode 100644
index 0000000000..18375bdf34
--- /dev/null
+++ b/test/FrontendC/msasm.c
@@ -0,0 +1,23 @@
+// RUN: %llvmgcc %s -fasm-blocks -S -o - | FileCheck %s
+// Complicated expression as jump target
+// XFAIL: *
+// XTARGET: x86,i386,i686
+
+void Method3()
+{
+// CHECK: Method3
+// CHECK-NOT: msasm
+ asm("foo:");
+// CHECK: return
+}
+
+void Method4()
+{
+// CHECK: Method4
+// CHECK: msasm
+ asm {
+ bar:
+ }
+// CHECK: return
+}
+