Skip to content

Commit 25e1916

Browse files
authored
[nfc][clang] Fix test in new-array-init.cpp (#79225)
This test was originally introduced in #76976, but it incorrectly tests braced-list initialization instead of parenthesized initialization.
1 parent 2a61be4 commit 25e1916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGenCXX/new-array-init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void string_sufficient_paren() {
164164
// FIXME: For very large arrays, it would be preferable to emit a small copy and a memset.
165165
// CHECKCXX20: call void @llvm.memcpy{{.*}}(ptr align {{[0-9]+}} %[[PTR]], ptr align {{[0-9]+}} @[[ABC15]], i32 15,
166166
// CHECKCXX20-NOT: memset
167-
new char[15] { "abc" };
167+
new char[15]("abc");
168168
}
169169
#endif
170170

0 commit comments

Comments
 (0)