[llvm-commits] CVS: llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c
Chris Lattner
sabre at nondot.org
Wed Apr 11 15:36:27 PDT 2007
Changes in directory llvm/test/CFrontend:
2007-04-11-InlineAsmUnion.c added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+7 -0)
2007-04-11-InlineAsmUnion.c | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c
diff -c /dev/null llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c:1.1
*** /dev/null Wed Apr 11 17:36:20 2007
--- llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c Wed Apr 11 17:36:10 2007
***************
*** 0 ****
--- 1,7 ----
+ // RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call void asm'
+
+ union U { int x; char* p; };
+ void foo() {
+ union U bar;
+ __asm__ volatile("foo %0\n" : "=r"(bar));
+ }
More information about the llvm-commits
mailing list