]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Add test case for r172121.
authorChad Rosier <mcrosier@apple.com>
Thu, 10 Jan 2013 22:11:28 +0000 (22:11 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 10 Jan 2013 22:11:28 +0000 (22:11 +0000)
Part of rdar://12991541

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172122 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ms-inline-asm.c

index af88cc1fe18bc49dd3a0e395cd02cf6757f233ed..5031722b01c42d08e0a9ef140e3cb2906b976c8c 100644 (file)
@@ -239,3 +239,10 @@ void t23() {
 // CHECK: t23
 // CHECK: call void asm sideeffect inteldialect "the_label:", "~{dirflag},~{fpsr},~{flags}"() nounwind
 }
+
+void t24_helper(void) {}
+void t24() {
+  __asm call t24_helper
+// CHECK: t24
+// CHECK: call void asm sideeffect inteldialect "call $0", "r,~{dirflag},~{fpsr},~{flags}"(void ()* @t24_helper) nounwind
+}