Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / cpp / function-ref-qualifiers / main.cpp
blob70f3a63eb9e64b04fc82b587dadc37eb32e6041f
1 #include <cstdint>
2 #include <cstdio>
4 struct Foo {
5 uint32_t func() const & { return 0; }
6 int64_t func() const && { return 1; }
7 uint32_t func() & { return 2; }
8 int64_t func() && { return 3; }
9 };
11 int main() {
12 Foo foo;
13 const Foo const_foo;
14 auto res = foo.func() + const_foo.func() + Foo{}.func() +
15 static_cast<Foo const &&>(Foo{}).func();
17 std::puts("Break here");
18 return res;