summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-security.insecureAPI.rand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-tidy/test/clang-analyzer-security.insecureAPI.rand.cpp')
-rw-r--r--tools/clang-tidy/test/clang-analyzer-security.insecureAPI.rand.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang-tidy/test/clang-analyzer-security.insecureAPI.rand.cpp b/tools/clang-tidy/test/clang-analyzer-security.insecureAPI.rand.cpp
new file mode 100644
index 0000000000..2274127c50
--- /dev/null
+++ b/tools/clang-tidy/test/clang-analyzer-security.insecureAPI.rand.cpp
@@ -0,0 +1,4 @@
+#include <stdlib.h>
+void test() {
+ random();
+}