================
@@ -0,0 +1,12 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=debug.DebugLifetimeAnnotations \
+// RUN:   -verify %s
+
+void clang_analyzer_lifetime_bound(int);
+
+// Verify that the DebugLifetimeAnnotations checkre can be used without
+// the LifetimeAnnotations checker being enabled and it does not cause
+// crash.
+void test() {
+  int x = 5;
+  clang_analyzer_lifetime_bound(x); // expected-no-diagnostics
----------------
benedekaibas wrote:

Sorry for the spam I have missed these comments yesterday. Changes applied 
here: 
[eb4ffb4](https://github.com/llvm/llvm-project/pull/200145/commits/eb4ffb4628c5dcb63620d230937447d497f91a16)

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

Reply via email to