mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 02:26:05 +00:00

Conversion done using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34. These are tests where the conversion worked out of the box and no manual fixup was performed.
14 lines
422 B
C++
14 lines
422 B
C++
// RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -std=c++11 -o - %s | FileCheck %s
|
|
|
|
using size_t = decltype(sizeof(0));
|
|
|
|
extern "C" char *something(long long x) {
|
|
}
|
|
|
|
// CHECK: @_Znwm ={{.*}} alias ptr (i64), ptr @something
|
|
void *operator new(size_t) __attribute__((alias("something")));
|
|
|
|
// PR16715: don't assert here.
|
|
// CHECK: call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #3{{$}}
|
|
int *pr16715 = new int;
|