llvm-project/clang/test/CodeGenCXX/new.cpp

13 lines
182 B
C++
Raw Normal View History

// RUN: clang-cc %s -emit-llvm -o %t
void t1() {
int* a = new int;
}
// Placement.
void* operator new(unsigned long, void*) throw();
void t2(int* a) {
int* b = new (a) int;
}