-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b60dbd6
commit ee3f1fd
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...s/expected_output/implicit_function_declaration/000001-clang-14.0-x86_64-pc-linux-gnu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
5 changes: 5 additions & 0 deletions
5
tests/expected_output/misspelt_printf/000001-clang-14.0-x86_64-pc-linux-gnu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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? |