summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Zhao <alanzhao1@users.noreply.github.com>2024-01-23 15:42:49 -0800
committerGitHub <noreply@github.com>2024-01-23 15:42:49 -0800
commit25e1916d88ebeef786956b678a4eb9a757e219d9 (patch)
tree386fdf8c3de6383165b71de29067c7c44da03bb8
parent2a61be4e4ca481016516403f634b475197221991 (diff)
[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.
-rw-r--r--clang/test/CodeGenCXX/new-array-init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/new-array-init.cpp b/clang/test/CodeGenCXX/new-array-init.cpp
index fe1bdf425ab1..781c4728df45 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