Let start with something easy :
-
When I run
gcc -v
-
Then the output contains
version
(Fixme: when regexp implemented, add gcc or clang before version, and number.number.number after)
Sanity check of a complete compile / link / run sequence :
- Given the new file
main.c
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
-
And given there is no
main
file -
When I successfully run
gcc main.c -o main
-
And I run
./main
-
Then the output is
Hello, World!