Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / new-alias.cpp
blob5310d47297bbdf869042d84873337321f53df0da
1 // RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -std=c++11 -o - %s | FileCheck %s
3 using size_t = decltype(sizeof(0));
5 extern "C" char *something(long long x) {
8 // CHECK: @_Znwm ={{.*}} alias ptr (i64), ptr @something
9 void *operator new(size_t) __attribute__((alias("something")));
11 // PR16715: don't assert here.
12 // CHECK: call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #3{{$}}
13 int *pr16715 = new int;