Mercurial > hg > CbC > CbC_llvm
view clang/test/Interpreter/global-dtor.cpp @ 237:c80f45b162ad llvm-original
add some fix
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:47:54 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// clang-format off // UNSUPPORTED: system-aix // // Tests that a global destructor is ran on platforms with gnu exception support. // // RUN: cat %s | clang-repl | FileCheck %s extern "C" int printf(const char *, ...); 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; // CHECK: D[f=1.000000, m=0x0] %quit