Skip to content

Commit

Permalink
[clang][Interp][NFC] Fix a test to actually test something
Browse files Browse the repository at this point in the history
This was always meant to test the values of c2, not c.
  • Loading branch information
tbaederr committed Jul 2, 2023
1 parent 289828b commit 0a9d2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/test/AST/Interp/records.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ static_assert(c.a == 100, "");
static_assert(c.b == 200, "");

constexpr C c2 = C().get();
static_assert(c.a == 100, "");
static_assert(c.b == 200, "");
static_assert(c2.a == 100, "");
static_assert(c2.b == 200, "");

constexpr int getB() {
C c;
Expand Down

0 comments on commit 0a9d2fa

Please sign in to comment.