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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
sparcv9-abi.cpp
blob
2ff9559e6cb25b996807ec4a7dd993e8b7cb4d33
1
// RUN: %clang_cc1 -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s
2
3
struct
pod
{
4
int
a
,
b
;
5
};
6
7
void
f0
();
8
void
f1
(
struct
pod
);
9
10
struct
notpod
{
11
int
a
,
b
;
12
~
notpod
() {
f0
(); }
13
};
14
15
void
f2
(
struct
notpod
);
16
17
// CHECK-LABEL: caller
18
// CHECK: call void @_Z2f13pod(i64
19
// CHECK: call void @_Z2f26notpod(ptr
20
void
caller
()
21
{
22
pod p1
;
23
notpod p2
;
24
f1
(
p1
);
25
f2
(
p2
);
26
}