forked from OSchip/llvm-project
parent
09478e975d
commit
d8ff51bf49
|
@ -1,11 +1,12 @@
|
|||
// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s
|
||||
#include <stddef.h>
|
||||
|
||||
void t1() {
|
||||
int* a = new int;
|
||||
}
|
||||
|
||||
// Placement.
|
||||
void* operator new(unsigned long, void*) throw();
|
||||
void* operator new(size_t, void*) throw();
|
||||
|
||||
void t2(int* a) {
|
||||
int* b = new (a) int;
|
||||
|
|
Loading…
Reference in New Issue