[clang] [clang][analyzer] Add test cases for CTU-import failures (PR #188524)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 26 03:22:57 PDT 2026
================
@@ -0,0 +1,26 @@
+// Test that loading of invalid AST dump leads CTU import failure and a note on stderr.
+// RUN: rm -rf %t
+// RUN: mkdir %t
+
+// RUN: touch %t/ctu-invalid-ast-other.cpp.ast
+
+// RUN: cp %S/Inputs/ctu-invalid-ast-other.cpp.externalDefMap.ast-dump.txt %t/externalDefMap.txt
+
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c++17 -analyze \
----------------
steakhal wrote:
In CSA tests it's fairly unusual to see the raw `%clang_cc1` clang cc1 driver command. What did drive you opting for that instead of `clang_analyze_cc1`?
(For dumping the AST it does make sense, but here we are just loading the ast dump.
https://github.com/llvm/llvm-project/pull/188524
More information about the cfe-commits
mailing list