From 25e1916d88ebeef786956b678a4eb9a757e219d9 Mon Sep 17 00:00:00 2001 From: Alan Zhao Date: Tue, 23 Jan 2024 15:42:49 -0800 Subject: [nfc][clang] Fix test in new-array-init.cpp (#79225) This test was originally introduced in https://github.com/llvm/llvm-project/pull/76976, but it incorrectly tests braced-list initialization instead of parenthesized initialization. --- clang/test/CodeGenCXX/new-array-init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/CodeGenCXX/new-array-init.cpp b/clang/test/CodeGenCXX/new-array-init.cpp index fe1bdf4..781c472 100644 --- a/clang/test/CodeGenCXX/new-array-init.cpp +++ b/clang/test/CodeGenCXX/new-array-init.cpp @@ -164,7 +164,7 @@ void string_sufficient_paren() { // FIXME: For very large arrays, it would be preferable to emit a small copy and a memset. // CHECKCXX20: call void @llvm.memcpy{{.*}}(ptr align {{[0-9]+}} %[[PTR]], ptr align {{[0-9]+}} @[[ABC15]], i32 15, // CHECKCXX20-NOT: memset - new char[15] { "abc" }; + new char[15]("abc"); } #endif -- cgit v1.1