[compiler-rt] [llvm] [asan] Pre-commit test with global constructor without any global (PR #104620)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 11:39:52 PDT 2024


================
@@ -0,0 +1,26 @@
+// RUN: %clangxx_asan %min_macos_deployment_target=10.11 -O0 %s %p/Helpers/initialization-bug-extra.cpp -o %t
+// RUN: %env_asan_opts=check_initialization_order=true:strict_init_order=true not %run %t 2>&1 | FileCheck %s
+
+// Not implemented.
+// XFAIL: *
+
+// Do not test with optimization -- the error may be optimized away.
+
+// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=186
+// XFAIL: target={{.*windows-msvc.*}}
+
+#include <cstdio>
----------------
fmayer wrote:

<stdio.h> seems to be the preferred spelling

https://github.com/llvm/llvm-project/pull/104620


More information about the llvm-commits mailing list