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