Skip to content

Commit

Permalink
Fix test from llvm#83124 and llvm#88902
Browse files Browse the repository at this point in the history
This just replaces an '#include<new>' with a declaration of array
placement new.
  • Loading branch information
erichkeane committed Apr 16, 2024
1 parent c9731a3 commit 0a789ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clang/test/SemaCXX/PR41441.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// RUN: %clang --target=x86_64-pc-linux -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s

#include <new>
namespace std {
using size_t = decltype(sizeof(int));
};
void* operator new[](std::size_t, void*) noexcept;

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

0 comments on commit 0a789ea

Please sign in to comment.