================
@@ -0,0 +1,26 @@
+// RUN: %clang --analyze -Xclang -verify %s
+//
+// RUN: %clang --analyze -Xclang -analyzer-dump-egraph=%t.dot -std=c++11 %s
+// RUN: cat %t.dot | FileCheck %s
+
+#include "../Inputs/system-header-simulator-cxx-std-suppression.h"
+
+// expected-no-diagnostics
+
+void test_sort() {
+  int arr[5];
+  std::sort(arr, arr + 5); // no-warning
+  // CHECK: \"tag\": \"apiModeling.OpaqueSTLFunctionsModeling
+}
+
+void test_stable_sort() {
+  int arr[5];
----------------
gamesh411 wrote:

The array is now correctly initialized.

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

Reply via email to