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