Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
b025734047dd8b630c34cea53b371361adb2a65a
/
.
/
test
/
CodeGen
/
2008-12-23-AsmIntPointerTie.c
blob: df646b7801f7443b03bb696852ee328d0cde38b0 [
file
] [
log
] [
blame
]
Eric Christopher
b025734
2011-07-26 21:42:32 +0000
[
diff
] [
blame^
]
1
// RUN: %clang_cc1 %s -emit-llvm -O1 -o -
2
3
typedef
long
intptr_t
;
4
int
test
(
void
*
b
)
{
5
intptr_t
a
;
6
__asm__ __volatile__
(
"%0 %1 "
:
"=r"
(
a
):
"0"
(
b
));
7
return
a
;
8
}