[clang] eee9efb - [clang][Interp][NFC] Add empty initializer list to test decl
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 00:23:55 PDT 2024
Author: Timm Bäder
Date: 2024-07-09T09:23:14+02:00
New Revision: eee9efb09c1a3cbbb1ad5471713f3da218c8b00e
URL: https://github.com/llvm/llvm-project/commit/eee9efb09c1a3cbbb1ad5471713f3da218c8b00e
DIFF: https://github.com/llvm/llvm-project/commit/eee9efb09c1a3cbbb1ad5471713f3da218c8b00e.diff
LOG: [clang][Interp][NFC] Add empty initializer list to test decl
This was missing in the test.
Added:
Modified:
clang/test/AST/Interp/records.cpp
Removed:
################################################################################
diff --git a/clang/test/AST/Interp/records.cpp b/clang/test/AST/Interp/records.cpp
index f27c895e89948..adc3799a20ce4 100644
--- a/clang/test/AST/Interp/records.cpp
+++ b/clang/test/AST/Interp/records.cpp
@@ -495,7 +495,7 @@ namespace DeclRefs {
static_assert(b.a.m == 100, "");
static_assert(b.a.f == 100, "");
- constexpr B b2;
+ constexpr B b2{};
static_assert(b2.a.m == 100, "");
static_assert(b2.a.f == 100, "");
static_assert(b2.a.f == 101, ""); // both-error {{failed}} \
More information about the cfe-commits
mailing list