Skip to content

Commit 0a9d2fa

Browse files
committed
[clang][Interp][NFC] Fix a test to actually test something
This was always meant to test the values of c2, not c.
1 parent 289828b commit 0a9d2fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/AST/Interp/records.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ static_assert(c.a == 100, "");
111111
static_assert(c.b == 200, "");
112112

113113
constexpr C c2 = C().get();
114-
static_assert(c.a == 100, "");
115-
static_assert(c.b == 200, "");
114+
static_assert(c2.a == 100, "");
115+
static_assert(c2.b == 200, "");
116116

117117
constexpr int getB() {
118118
C c;

0 commit comments

Comments
 (0)