summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/new.cpp
blob: dde7bfe9ee57f2426dd796de3e10af8716231f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
}

void t3() {
  int *a = new int(10);
  _Complex int* b = new _Complex int(10i);
  
}
OpenPOWER on IntegriCloud