mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +00:00
Use -O0 instead of -O1 and -O2
This commit is contained in:
@@ -128,7 +128,6 @@ pub fn test_irgen(path: &Path) {
|
||||
.args(&[
|
||||
"-fsanitize=undefined",
|
||||
"-fno-sanitize-recover=all",
|
||||
"-O1",
|
||||
&file_path,
|
||||
"-o",
|
||||
&bin_path,
|
||||
@@ -396,7 +395,6 @@ pub fn test_end_to_end(path: &Path) {
|
||||
.args(&[
|
||||
"-fsanitize=undefined",
|
||||
"-fno-sanitize-recover=all",
|
||||
"-O1",
|
||||
&file_path,
|
||||
"-o",
|
||||
&bin_path,
|
||||
|
||||
@@ -14,7 +14,7 @@ fi
|
||||
|
||||
if
|
||||
[ $FUZZ_ARG = '-i' ] &&\
|
||||
(! clang -pedantic -Wall -Werror=strict-prototypes -O1 -c test_reduced.c > out.txt 2>&1 ||\
|
||||
(! clang -pedantic -Wall -Werror=strict-prototypes -c test_reduced.c > out.txt 2>&1 ||\
|
||||
grep 'main-return-type' out.txt ||\
|
||||
grep 'conversions than data arguments' out.txt ||\
|
||||
grep 'int-conversion' out.txt ||\
|
||||
@@ -37,7 +37,7 @@ if
|
||||
grep 'declaration does not declare anything' out.txt ||\
|
||||
grep 'not equal to a null pointer is always true' out.txt ||\
|
||||
grep 'empty struct is a GNU extension' out.txt ||\
|
||||
! gcc -Wall -Wextra -O2 test_reduced.c > outa.txt 2>&1 ||\
|
||||
! gcc -Wall -Wextra test_reduced.c > outa.txt 2>&1 ||\
|
||||
grep 'uninitialized' outa.txt ||\
|
||||
grep 'without a cast' outa.txt ||\
|
||||
grep 'control reaches end' outa.txt ||\
|
||||
|
||||
Reference in New Issue
Block a user