summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-core.uninitialized.Assign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-tidy/test/clang-analyzer-core.uninitialized.Assign.cpp')
-rw-r--r--tools/clang-tidy/test/clang-analyzer-core.uninitialized.Assign.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang-tidy/test/clang-analyzer-core.uninitialized.Assign.cpp b/tools/clang-tidy/test/clang-analyzer-core.uninitialized.Assign.cpp
new file mode 100644
index 0000000000..e9685d48a4
--- /dev/null
+++ b/tools/clang-tidy/test/clang-analyzer-core.uninitialized.Assign.cpp
@@ -0,0 +1,4 @@
+void test() {
+ int x;
+ x |= 1;
+}