Author: Alan Zhao Date: 2024-01-23T15:42:49-08:00 New Revision: 25e1916d88ebeef786956b678a4eb9a757e219d9
URL: https://github.com/llvm/llvm-project/commit/25e1916d88ebeef786956b678a4eb9a757e219d9 DIFF: https://github.com/llvm/llvm-project/commit/25e1916d88ebeef786956b678a4eb9a757e219d9.diff LOG: [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. Added: Modified: clang/test/CodeGenCXX/new-array-init.cpp Removed: ################################################################################ diff --git a/clang/test/CodeGenCXX/new-array-init.cpp b/clang/test/CodeGenCXX/new-array-init.cpp index fe1bdf425ab142..781c4728df4509 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits