Skip to content

Commit 9026dd7

Browse files
committed
Fix
1 parent ab22515 commit 9026dd7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/SelfTest/UsageTests/Compilation.tests.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,13 @@ TEST_CASE("#1027: Bitfields can be captured") {
146146

147147
TEST_CASE( "#3001: Enum-based bitfields can be captured" ) {
148148
enum E {
149-
ZERO,
150-
ONE,
149+
ZERO = 0,
150+
ONE = 1,
151+
TWO = 2,
151152
};
152153

153154
struct BF {
154-
E e : 1;
155+
E e : 2;
155156
};
156157

157158
BF bf{};

0 commit comments

Comments
 (0)