[compiler-rt] [test][asan] Check for order of DynInitPoison (PR #101584)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 23:49:02 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 54a940b5ba0e1bc215f4034bd3a2fb8ec5817351 028e3bc81be334092bf27f2ee68edad74eaff01a --extensions cpp -- compiler-rt/test/asan/TestCases/Helpers/initialization-nobug-extra.cpp compiler-rt/test/asan/TestCases/initialization-nobug.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/asan/TestCases/initialization-nobug.cpp b/compiler-rt/test/asan/TestCases/initialization-nobug.cpp
index 0b8fca3dee..18bd3d764c 100644
--- a/compiler-rt/test/asan/TestCases/initialization-nobug.cpp
+++ b/compiler-rt/test/asan/TestCases/initialization-nobug.cpp
@@ -10,8 +10,7 @@
// Make sure that accessing a global in the same TU is safe
bool condition = true;
-__attribute__((noinline, weak))
-int initializeSameTU() {
+__attribute__((noinline, weak)) int initializeSameTU() {
return condition ? 0x2a : 052;
}
int sameTU = initializeSameTU();
@@ -44,6 +43,5 @@ int getStructWithDtorValue() { return struct_with_dtor.value; }
int main() { return 0; }
-
// CHECK: DynInitPoison module: {{.*}}initialization-nobug.cpp
// CHECK: DynInitPoison module: {{.*}}initialization-nobug-extra.cpp
``````````
</details>
https://github.com/llvm/llvm-project/pull/101584
More information about the llvm-commits
mailing list