Skip to content

Commit

Permalink
[nfc][clang] Fix test in new-array-init.cpp (#79225)
Browse files Browse the repository at this point in the history
This test was originally introduced in
#76976, but it incorrectly
tests braced-list initialization instead of parenthesized
initialization.
  • Loading branch information
alanzhao1 committed Jan 23, 2024
1 parent 2a61be4 commit 25e1916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/new-array-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 25e1916

Please sign in to comment.