Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Interpreter / global-dtor.cpp
blob1f241d9f19317e664badb0cd338fc6105d05a2dd
1 // clang-format off
2 // UNSUPPORTED: system-aix
3 //
4 // Tests that a global destructor is ran on platforms with gnu exception support.
5 //
6 // RUN: cat %s | clang-repl | FileCheck %s
8 extern "C" int printf(const char *, ...);
10 struct D { float f = 1.0; D *m = nullptr; D(){} ~D() { printf("D[f=%f, m=0x%llx]\n", f, reinterpret_cast<unsigned long long>(m)); }} d;
11 // CHECK: D[f=1.000000, m=0x0]
13 %quit