Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / cpp / llvm-style / main.cpp
blob6df5c9276985c9a72b5cc241b9ffe7fb4061449a
1 namespace n {
2 struct D {
3 int i;
4 static int anInt() { return 2; }
5 int dump() { return i; }
6 };
8 class C {
9 public:
10 int foo(D *D);
14 using namespace n;
16 int C::foo(D* D) {
17 return D->dump(); //% self.expect("expression -- D->dump()", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "2"])
18 //% self.expect("expression -- D::anInt()", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "2"])
22 int main (int argc, char const *argv[])
24 D myD { D::anInt() };
25 C().foo(&myD);
26 return 0;