[clang] Fix diagnostics-dsym.test on mac-arm64 (PR #99399)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 17 15:51:07 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Haowei (zeroomega)

<details>
<summary>Changes</summary>

The check ordering of diagnostics-dsym.test is wrong and it causes
test failure when running on mac-arm64 machine. This patch fixes it.


---
Full diff: https://github.com/llvm/llvm-project/pull/99399.diff


1 Files Affected:

- (modified) clang/test/InstallAPI/diagnostics-dsym.test (+1-1) 


``````````diff
diff --git a/clang/test/InstallAPI/diagnostics-dsym.test b/clang/test/InstallAPI/diagnostics-dsym.test
index 42fa67a1f9b1e..fb760d1858ba3 100644
--- a/clang/test/InstallAPI/diagnostics-dsym.test
+++ b/clang/test/InstallAPI/diagnostics-dsym.test
@@ -19,8 +19,8 @@
 ; RUN: --verify-mode=Pedantic 2>&1 | FileCheck %s
 
 ; CHECK: violations found for arm64 
-; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
 ; CHECK: foo.c:1:0: error: no declaration found for exported symbol 'foo' in dynamic library
+; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
 
 ;--- foo.c
 int foo(void) {

``````````

</details>


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


More information about the cfe-commits mailing list