================
@@ -0,0 +1,21 @@
+// RUN: %clang_analyze_cc1 -std=c++20 \
+// RUN:   -analyzer-checker=core,alpha.deadcode.UnreachableCode \
+// RUN:   -analyzer-config experimental-enable-naive-ctu-analysis=true \
+// RUN:   -analyzer-config max-nodes=10 \
+// RUN:   -verify=ctu-on %s
+// ctu-on-no-diagnostics
----------------
marco-milanese-sonarsource wrote:

@steakhal I've extended the test to add a true positive and show that we indeed 
find the dead code. Also, i've added a copy of this test where each function 
may or may not call a function in an external TU. Let me know if that is fine 
or you'd like further parts to be tested.

(note: both tests fail without this fix and now pass)

https://github.com/llvm/llvm-project/pull/219225
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to