diff --git a/tests/expected_output/implicit_function_declaration/000001-clang-14.0-x86_64-pc-linux-gnu.txt b/tests/expected_output/implicit_function_declaration/000001-clang-14.0-x86_64-pc-linux-gnu.txt new file mode 100644 index 0000000..bb9b17c --- /dev/null +++ b/tests/expected_output/implicit_function_declaration/000001-clang-14.0-x86_64-pc-linux-gnu.txt @@ -0,0 +1,8 @@ +tests/extracted_compile_time_errors/implicit_function_declaration.c:2:5: warning: implicit declaration of function 'f' is invalid in C99 [-Wimplicit-function-declaration] + f(); + ^ +dcc explanation: you are calling a function named f line 2 of tests/extracted_compile_time_errors/implicit_function_declaration.c but dcc does not recognize f as a function. +There are several possible causes: + a) You might have misspelt the function name. + b) You might need to add a #include line at the top of tests/extracted_compile_time_errors/implicit_function_declaration.c. + c) You might need to add a prototype for f. diff --git a/tests/expected_output/misspelt_printf/000001-clang-14.0-x86_64-pc-linux-gnu.txt b/tests/expected_output/misspelt_printf/000001-clang-14.0-x86_64-pc-linux-gnu.txt new file mode 100644 index 0000000..6a190b0 --- /dev/null +++ b/tests/expected_output/misspelt_printf/000001-clang-14.0-x86_64-pc-linux-gnu.txt @@ -0,0 +1,5 @@ +tests/extracted_compile_time_errors/misspelt_printf.c:3:5: warning: implicit declaration of function 'print' is invalid in C99 [-Wimplicit-function-declaration] + print("hello"); + ^ +dcc explanation: you are calling a function named print on line 3 of tests/extracted_compile_time_errors/misspelt_printf.c but dcc does not recognize print as a function. +Maybe you meant printf?