Skip to content

Commit ee3f1fd

Browse files
committed
update test suite
1 parent b60dbd6 commit ee3f1fd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tests/extracted_compile_time_errors/implicit_function_declaration.c:2:5: warning: implicit declaration of function 'f' is invalid in C99 [-Wimplicit-function-declaration]
2+
f();
3+
^
4+
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.
5+
There are several possible causes:
6+
a) You might have misspelt the function name.
7+
b) You might need to add a #include line at the top of tests/extracted_compile_time_errors/implicit_function_declaration.c.
8+
c) You might need to add a prototype for f.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
tests/extracted_compile_time_errors/misspelt_printf.c:3:5: warning: implicit declaration of function 'print' is invalid in C99 [-Wimplicit-function-declaration]
2+
print("hello");
3+
^
4+
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.
5+
Maybe you meant printf?

0 commit comments

Comments
 (0)