Skip to content

Commit 0a789ea

Browse files
committed
Fix test from #83124 and #88902
This just replaces an '#include<new>' with a declaration of array placement new.
1 parent c9731a3 commit 0a789ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/test/SemaCXX/PR41441.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %clang --target=x86_64-pc-linux -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s
22

3-
#include <new>
3+
namespace std {
4+
using size_t = decltype(sizeof(int));
5+
};
6+
void* operator new[](std::size_t, void*) noexcept;
47

58
// CHECK: call void @llvm.memset.p0.i64(ptr align 1 %x, i8 0, i64 8, i1 false)
69
// CHECK: call void @llvm.memset.p0.i64(ptr align 16 %x, i8 0, i64 32, i1 false)

0 commit comments

Comments
 (0)