repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2010-08-12-asm-aggr-arg.c
blob
8753bf193db7b157af0f03f763ff314c872dde4b
1
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
// A small aggregate can be passed as an integer. Make sure we don't get an
3
// error with "input constraint with a matching output constraint of
4
// incompatible type!"
5
6
struct
wrapper
{
7
int
i
;
8
};
9
10
// CHECK: xyz
11
int
test
(
int
i
) {
12
struct
wrapper w
;
13
w
.
i
=
i
;
14
__asm__
(
"xyz"
:
"=r"
(
w
) :
"0"
(
w
));
15
return
w
.
i
;
16
}