summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/msasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/msasm.c')
-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 0000000..18375bd
--- /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
+}
+
OpenPOWER on IntegriCloud