☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGen
/
2007-04-13-InlineAsmStruct2.c
☽
☼
clang/test/CodeGen/2007-04-13-InlineAsmStruct2.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3
struct V { short X, Y; };
4
int bar(void) {
5
struct V bar;
6
// CHECK: call void asm
7
__asm__ volatile("foo %0\n" :: "r"(bar));
8
return bar.X;
9
}