15 lines · cpp
1// RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -std=c++11 -o - %s | FileCheck %s2 3using size_t = decltype(sizeof(0));4 5extern "C" char *something(long long x) {6 return nullptr;7}8 9// CHECK: @_Znwm ={{.*}} alias ptr (i64), ptr @something10void *operator new(size_t) __attribute__((alias("something")));11 12// PR16715: don't assert here.13// CHECK: call noalias noundef nonnull ptr @_Znwm(i64 noundef 4)14int *pr16715 = new int;15