brintos

brintos / llvm-project-archived public Read only

0
0
Text · 557 B · 8d78373 Raw
23 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-windows -fasync-exceptions -x c++ \2// RUN:  -emit-llvm %s -o -| FileCheck %s3 4extern "C" int printf(const char*,...);5class PrintfArg6{7public:8  PrintfArg();9  PrintfArg(const char* s);10 11  // compiler crash fixed if this destructor removed12  ~PrintfArg() {int x; printf("ddd\n");  }13};14 15void 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()18unsigned myfunc(unsigned index)19{20  devif_Warning("");21  return 0;22}23