diff options
Diffstat (limited to 'clang/test/Analysis/diagnostics/Inputs')
| -rw-r--r-- | clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h b/clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h index a902e126744..9ecef343f5e 100644 --- a/clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h +++ b/clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h @@ -16,4 +16,28 @@ void cause_div_by_zero_in_header(int in) { void do_something (int in) { in++; in++; -}
\ No newline at end of file +} + +void cause_div_by_zero_in_header2(int in) { + int h2 = 0; + h2 = in/h2; + h2++; +} + +# define CALLS_BUGGY_FUNCTION2 cause_div_by_zero_in_header2(5); + +void cause_div_by_zero_in_header3(int in) { + int h3 = 0; + h3 = in/h3; + h3++; +} + +# define CALLS_BUGGY_FUNCTION3 cause_div_by_zero_in_header3(5); + +void cause_div_by_zero_in_header4(int in) { + int h4 = 0; + h4 = in/h4; + h4++; +} + +# define TAKE_CALL_AS_ARG(c) c; |

