Ajout de l'héritage des entrées/sorties dans CommandExecutor + Ajout du test 11
This commit is contained in:
15
tests/C/test-11-error-in-code/make/main.c
Normal file
15
tests/C/test-11-error-in-code/make/main.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void){
|
||||
printf("Normalement, ce code ne fonctionne par car j'ai été stupide...\n");
|
||||
|
||||
// La fonction qui suit n'existe pas donc le programme ne peut pas compiler et renvoie une erreur.
|
||||
fonctionQuiNexistePas();
|
||||
|
||||
// La division par zéro est impossible, le programme renvoie un warning.
|
||||
int a = 15;
|
||||
a = a/0;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user