Skip to content

Commit 80d36b9

Browse files
committed
Adjust a test case to avoid modifying read-only data
Since the .rodata section currently resides in the read-only segment of the compiled program, this commit modifies a test case that originally attempted to write to .rodata to avoid such an operation.
1 parent 1de282b commit 80d36b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/driver.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3210,13 +3210,11 @@ int main()
32103210
EOF
32113211

32123212
# global string initialization and modification
3213-
try_output 0 "Hello World!Hallo World!" << EOF
3213+
try_output 0 "Hello World!" << EOF
32143214
char *data = "Hello World!";
32153215
32163216
int main(void)
32173217
{
3218-
printf(data);
3219-
data[1] = 'a';
32203218
printf(data);
32213219
return 0;
32223220
}

0 commit comments

Comments
 (0)