Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
9a4cb15ecabfd1d9b58ba9262fad749ac7ecff3d
/
.
/
test
/
FrontendC
/
2007-04-13-InlineAsmUnion2.c
blob: 284654d223c04d0bf983de7a03168931a0c1ec83 [
file
] [
log
] [
blame
]
Dan Gohman
f17a25c
2007-07-18 16:29:46 +0000
[
diff
] [
blame
]
1
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call void asm}
2
3
union
U
{
int
x
;
char
*
p
;
};
4
void
foo
()
{
5
union
U bar
;
6
__asm__
volatile
(
"foo %0\n"
::
"r"
(
bar
));
7
}