aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/commands/expression/nested/main.cpp
blob: 620535fa09534baa78e200aa195c981882d743ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace a {
namespace b {
namespace c {
static int d = 12;
enum Color { Red, Green, Blue };
} // namespace c
} // namespace b
} // namespace a

struct A {
  int _a = 'a';
  struct B {
    short _b = 'b';
    struct C {
      char _c = 'c';
      enum EnumType : int { Eleven = 11 };
      static EnumType enum_static;
    };
  };
};

A::B::C::EnumType A::B::C::enum_static = A::B::C::Eleven;

int foo() {
  a::b::c::Color color = a::b::c::Blue;
  return A::B::C::enum_static == a::b::c::d && ((int)color == 0);
}

int main() {
  return foo(); // Stop here to evaluate expressions
}