diff options
author | vanhauser-thc <vh@thc.org> | 2022-07-04 09:59:47 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-07-04 09:59:47 +0200 |
commit | 1334851e7c35bf7bf35db0dc2a974b2e0249d8f8 (patch) | |
tree | 934793839d3c939c12ed9202dae51cb06561c0d6 /test-instr.c | |
parent | e21738a24852e0ed9b346c28aeb4132a34d5b7cc (diff) | |
download | afl++-1334851e7c35bf7bf35db0dc2a974b2e0249d8f8.tar.gz |
cmplog support for gcc_plugin by adacore
Diffstat (limited to 'test-instr.c')
-rw-r--r-- | test-instr.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/test-instr.c b/test-instr.c index b2caa1fe..f304e208 100644 --- a/test-instr.c +++ b/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; |