Skip to content

Commit

Permalink
update test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-taylor committed May 25, 2023
1 parent b60dbd6 commit ee3f1fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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.
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?

0 comments on commit ee3f1fd

Please sign in to comment.