mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
cmplog support for gcc_plugin by adacore
This commit is contained in:
21
test-instr.c
21
test-instr.c
@ -58,12 +58,21 @@ int main(int argc, char **argv) {
|
||||
|
||||
// we support three input cases (plus a 4th if stdin is used but there is no
|
||||
// input)
|
||||
if (buf[0] == '0')
|
||||
printf("Looks like a zero to me!\n");
|
||||
else if (buf[0] == '1')
|
||||
printf("Pretty sure that is a one!\n");
|
||||
else
|
||||
printf("Neither one or zero? How quaint!\n");
|
||||
switch (buf[0]) {
|
||||
|
||||
case '0':
|
||||
printf("Looks like a zero to me!\n");
|
||||
break;
|
||||
|
||||
case '1':
|
||||
printf("Pretty sure that is a one!\n");
|
||||
break;
|
||||
|
||||
default:
|
||||
printf("Neither one or zero? How quaint!\n");
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user