Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / windows-seh-async-exceptions.cpp
blob8d78373151a00bc11aa75fcfeee5a2d3f5261a4f
1 // RUN: %clang_cc1 -triple x86_64-windows -fasync-exceptions -x c++ \
2 // RUN: -emit-llvm %s -o -| FileCheck %s
4 extern "C" int printf(const char*,...);
5 class PrintfArg
7 public:
8 PrintfArg();
9 PrintfArg(const char* s);
11 // compiler crash fixed if this destructor removed
12 ~PrintfArg() {int x; printf("ddd\n"); }
15 void devif_Warning(const char* fmt, PrintfArg arg1 = PrintfArg());
16 // CHECK-NOT: invoke void @llvm.seh.scope.begin()
17 // CHECK-NOT: invoke void @llvm.seh.scope.end()
18 unsigned myfunc(unsigned index)
20 devif_Warning("");
21 return 0;