Debian Codegraph @

js/src/gdb/tests/enum-printers.cpp

raw
1 #include "gdb-tests.h"
2
3 #include <stdint.h>
4
5 enum unscoped_no_storage { EnumValue1 };
6
7 enum unscoped_with_storage : uint8_t { EnumValue2 };
8
9 enum class scoped_no_storage { EnumValue3 };
10
11 enum class scoped_with_storage : uint8_t { EnumValue4 };
12
13 FRAGMENT(enum_printers, one) {
14 unscoped_no_storage i1 = EnumValue1;
15 unscoped_with_storage i2 = EnumValue2;
16 scoped_no_storage i3 = scoped_no_storage::EnumValue3;
17 scoped_with_storage i4 = scoped_with_storage::EnumValue4;
18
19 breakpoint();
20
21 use(i1);
22 use(i2);
23 use(i3);
24 use(i4);
25 }