diff --git a/test/CFrontend/2007-04-11-InlineAsmStruct.c b/test/CFrontend/2007-04-11-InlineAsmStruct.c new file mode 100644 index 00000000000..8f7bc83648d --- /dev/null +++ b/test/CFrontend/2007-04-11-InlineAsmStruct.c @@ -0,0 +1,9 @@ +// RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call i32 asm' + +struct V { short X, Y; }; +int bar() { + struct V bar; + __asm__ volatile("foo %0\n" : "=r"(bar)); + return bar.X; +} + diff --git a/test/CFrontend/2007-04-11-InlineAsmUnion.c b/test/CFrontend/2007-04-11-InlineAsmUnion.c index 28ffe73feca..e4ea69a39e9 100644 --- a/test/CFrontend/2007-04-11-InlineAsmUnion.c +++ b/test/CFrontend/2007-04-11-InlineAsmUnion.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call void asm' +// RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call i32 asm' union U { int x; char* p; }; void foo() {