mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Add -fsanitize=float-divide-by-zero option
This commit is contained in:
@@ -126,6 +126,7 @@ pub fn test_irgen(path: &Path) {
|
|||||||
// Compile c file: If fails, test is vacuously success
|
// Compile c file: If fails, test is vacuously success
|
||||||
if !Command::new("clang")
|
if !Command::new("clang")
|
||||||
.args(&[
|
.args(&[
|
||||||
|
"-fsanitize=float-divide-by-zero",
|
||||||
"-fsanitize=undefined",
|
"-fsanitize=undefined",
|
||||||
"-fno-sanitize-recover=all",
|
"-fno-sanitize-recover=all",
|
||||||
&file_path,
|
&file_path,
|
||||||
@@ -393,6 +394,7 @@ pub fn test_end_to_end(path: &Path) {
|
|||||||
// Compile c file: If fails, test is vacuously success
|
// Compile c file: If fails, test is vacuously success
|
||||||
if !Command::new("clang")
|
if !Command::new("clang")
|
||||||
.args(&[
|
.args(&[
|
||||||
|
"-fsanitize=float-divide-by-zero",
|
||||||
"-fsanitize=undefined",
|
"-fsanitize=undefined",
|
||||||
"-fno-sanitize-recover=all",
|
"-fno-sanitize-recover=all",
|
||||||
&file_path,
|
&file_path,
|
||||||
|
|||||||
Reference in New Issue
Block a user