fixed testcase

This commit is contained in:
Dominik Maier
2020-03-30 18:20:20 +02:00
parent c36c34cf9e
commit 710a29a1e0
2 changed files with 4 additions and 7 deletions

View File

@ -10,11 +10,10 @@
int main(int argc, char *argv[])
{
char str[100]={ };
char str[100];
read(0, str, 100);
int *ptr = NULL;
if( str[0] == 'P') {
*ptr = 123;
if( str[6] == 'A') {
abort();
}
return 0;
}