1enum class Foo {
2 FooBar = 42
3};
4
5enum Bar {
6 BarBar = 3,
7 BarBarBar = 42
8};
9
10int main(int argc, const char **argv) {
11 Foo f = Foo::FooBar;
12 Bar b = BarBar;
13 bool b1 = f == Foo::FooBar;
14 bool b2 = b == BarBar;
15 return 0; // Set break point at this line.
16}
17

source code of lldb/test/API/commands/expression/scoped_enums/main.cpp