Skip to content

Commit eee9efb

Browse files
committed
[clang][Interp][NFC] Add empty initializer list to test decl
This was missing in the test.
1 parent a1e1f31 commit eee9efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/AST/Interp/records.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ namespace DeclRefs {
495495
static_assert(b.a.m == 100, "");
496496
static_assert(b.a.f == 100, "");
497497

498-
constexpr B b2;
498+
constexpr B b2{};
499499
static_assert(b2.a.m == 100, "");
500500
static_assert(b2.a.f == 100, "");
501501
static_assert(b2.a.f == 101, ""); // both-error {{failed}} \

0 commit comments

Comments
 (0)