projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
289828b
)
[clang][Interp][NFC] Fix a test to actually test something
author
Timm Bäder
<tbaeder@redhat.com>
Fri, 30 Jun 2023 19:09:16 +0000
(21:09 +0200)
committer
Timm Bäder
<tbaeder@redhat.com>
Sun, 2 Jul 2023 04:49:55 +0000
(06:49 +0200)
This was always meant to test the values of c2, not c.
clang/test/AST/Interp/records.cpp
patch
|
blob
|
history
diff --git
a/clang/test/AST/Interp/records.cpp
b/clang/test/AST/Interp/records.cpp
index
68d902a
..
8d97655
100644
(file)
--- 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(c
2
.a == 100, "");
+static_assert(c
2
.b == 200, "");
constexpr int getB() {
C c;