diff options
Diffstat (limited to 'tools/scan-build-py/tests/functional/src/clean-one.c')
-rw-r--r-- | tools/scan-build-py/tests/functional/src/clean-one.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/scan-build-py/tests/functional/src/clean-one.c b/tools/scan-build-py/tests/functional/src/clean-one.c new file mode 100644 index 0000000000..08c5f33609 --- /dev/null +++ b/tools/scan-build-py/tests/functional/src/clean-one.c @@ -0,0 +1,13 @@ +#include <clean-one.h> + +int do_nothing_loop() +{ + int i = 32; + int idx = 0; + + for (idx = i; idx > 0; --idx) + { + i += idx; + } + return i; +} |