Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / new-infallible.cpp
blob226cb20c9c556de3cb2f56b33289b58b7845c052
1 // RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -fnew-infallible -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -fno-new-infallible -fnew-infallible -o - %s | FileCheck %s
3 // RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -fno-new-infallible -o - %s | FileCheck %s --check-prefix=NO-NEW-INFALLIBLE
4 // RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu -fnew-infallible -fno-new-infallible -o - %s | FileCheck %s --check-prefix=NO-NEW-INFALLIBLE
6 // CHECK: call noalias noundef nonnull ptr @_Znwm(i64 noundef 4)
8 // CHECK: ; Function Attrs: nobuiltin nounwind allocsize(0)
9 // CHECK-NEXT: declare noundef nonnull ptr @_Znwm(i64 noundef)
11 // NO-NEW-INFALLIBLE: call noalias noundef nonnull ptr @_Znwm(i64 noundef 4)
13 // NO-NEW-INFALLIBLE: ; Function Attrs: nobuiltin allocsize(0)
14 // NO-NEW-INFALLIBLE-NEXT: declare noundef nonnull ptr @_Znwm(i64 noundef)
16 int *new_infallible = new int;