summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/tools/scan-build-py/tests/functional/src/clean-two.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/clang/tools/scan-build-py/tests/functional/src/clean-two.c')
-rw-r--r--gnu/llvm/clang/tools/scan-build-py/tests/functional/src/clean-two.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/llvm/clang/tools/scan-build-py/tests/functional/src/clean-two.c b/gnu/llvm/clang/tools/scan-build-py/tests/functional/src/clean-two.c
new file mode 100644
index 00000000000..73bc288627d
--- /dev/null
+++ b/gnu/llvm/clang/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;
+}