Reverts llvm/llvm-project#105895 Still breaks the test https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA/1864/
15 lines
677 B
C++
15 lines
677 B
C++
// RUN: %clangxx_asan -O3 %S/../initialization-nobug.cpp %S/../Helpers/initialization-nobug-extra.cpp -fuse-ld=lld -o %t && %env_asan_opts=check_initialization_order=true:report_globals=3 %run %t 2>&1 | FileCheck %s --implicit-check-not "DynInit"
|
|
|
|
// Same as initialization-nobug.cpp, but with lld we expect just one
|
|
// `DynInitUnpoison` executed after `AfterDynamicInit` at the end.
|
|
// REQUIRES: lld-available
|
|
|
|
// With dynamic runtimes `AfterDynamicInit` will called before `executable`
|
|
// contructors, with constructors of dynamic runtime.
|
|
// XFAIL: asan-dynamic-runtime
|
|
|
|
// CHECK: DynInitPoison
|
|
// CHECK: DynInitPoison
|
|
// CHECK: UnpoisonBeforeMain
|
|
// CHECK: DynInitUnpoison
|