aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <tbaeder@redhat.com>2023-06-30 21:09:16 +0200
committerTimm Bäder <tbaeder@redhat.com>2023-07-02 06:49:55 +0200
commit0a9d2fa9ac9ec12eb4d50674d40fc73510fef405 (patch)
tree07829dd8b6edd882183f775a06ce1b003e8af78f
parent289828b1c0a6bc6eed8a634376a5152adae2283b (diff)
downloadllvm-0a9d2fa9ac9ec12eb4d50674d40fc73510fef405.zip
llvm-0a9d2fa9ac9ec12eb4d50674d40fc73510fef405.tar.gz
llvm-0a9d2fa9ac9ec12eb4d50674d40fc73510fef405.tar.bz2
[clang][Interp][NFC] Fix a test to actually test something
This was always meant to test the values of c2, not c.
-rw-r--r--clang/test/AST/Interp/records.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/AST/Interp/records.cpp b/clang/test/AST/Interp/records.cpp
index 68d902a..8d97655 100644
--- a/clang/test/AST/Interp/records.cpp
+++ b/clang/test/AST/Interp/records.cpp
@@ -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;