Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / cpp / trivial_abi / main.cpp
blobb1f50159692a0f9a4482348d3ac93f97acc5fcd6
1 struct __attribute__((trivial_abi)) S_Trivial {
2 ~S_Trivial() {}
3 int ivar = 10;
4 };
6 S_Trivial takeTrivial(S_Trivial inVal)
8 S_Trivial ret_val = inVal;
9 ret_val.ivar = 30;
10 return ret_val; // Set a breakpoint here
13 struct S_NotTrivial {
14 ~S_NotTrivial() {}
15 int ivar = 10;
18 S_NotTrivial takeNotTrivial(S_NotTrivial inVal)
20 S_NotTrivial ret_val = inVal;
21 ret_val.ivar = 30;
22 return ret_val; // Set a breakpoint here
25 int
26 main()
28 S_Trivial inVal, outVal;
29 outVal = takeTrivial(inVal);
31 S_NotTrivial inNotVal, outNotVal;
32 outNotVal = takeNotTrivial(inNotVal);
34 return 0; // Set another for return value