summaryrefslogtreecommitdiffstats
path: root/tools/scan-build-py/tests/functional/src/clean-two.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scan-build-py/tests/functional/src/clean-two.c')
-rw-r--r--tools/scan-build-py/tests/functional/src/clean-two.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/scan-build-py/tests/functional/src/clean-two.c b/tools/scan-build-py/tests/functional/src/clean-two.c
new file mode 100644
index 0000000000..73bc288627
--- /dev/null
+++ b/tools/scan-build-py/tests/functional/src/clean-two.c
@@ -0,0 +1,11 @@
+#include <clean-one.h>
+
+#include <stdlib.h>
+
+unsigned int another_method()
+{
+ unsigned int const size = do_nothing_loop();
+ unsigned int const square = size * size;
+
+ return square;
+}