2013-07-30 04:14:16 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -std=c++11 -o - %s | FileCheck %s
|
|
|
|
|
|
|
|
using size_t = decltype(sizeof(0));
|
|
|
|
|
2013-10-15 23:40:03 +08:00
|
|
|
extern "C" char *something(long long x) {
|
|
|
|
}
|
|
|
|
|
2015-09-11 11:22:18 +08:00
|
|
|
// CHECK: @_Znwm = alias i8* (i64), i8* (i64)* @something
|
2013-07-30 04:14:16 +08:00
|
|
|
void *operator new(size_t) __attribute__((alias("something")));
|
|
|
|
|
|
|
|
// PR16715: don't assert here.
|
2016-04-08 05:46:12 +08:00
|
|
|
// CHECK: call i8* @_Znwm(i64 4){{$}}
|
2013-07-30 04:14:16 +08:00
|
|
|
int *pr16715 = new int;
|