summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/expression/scoped_enums/main.cpp
blob: b0d67d23dc5e5206b898c1a0b38e36e5fa61f31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
enum class Foo {
  FooBar = 42
};

enum Bar {
    BarBar = 3,
    BarBarBar = 42
};

int main(int argc, const char **argv) {
  Foo f = Foo::FooBar;
  Bar b = BarBar;
  bool b1 = f == Foo::FooBar;
  bool b2 = b == BarBar;
  return 0; // Set break point at this line.
}
OpenPOWER on IntegriCloud