mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +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
|
||||
if !Command::new("clang")
|
||||
.args(&[
|
||||
"-fsanitize=float-divide-by-zero",
|
||||
"-fsanitize=undefined",
|
||||
"-fno-sanitize-recover=all",
|
||||
&file_path,
|
||||
@@ -393,6 +394,7 @@ pub fn test_end_to_end(path: &Path) {
|
||||
// Compile c file: If fails, test is vacuously success
|
||||
if !Command::new("clang")
|
||||
.args(&[
|
||||
"-fsanitize=float-divide-by-zero",
|
||||
"-fsanitize=undefined",
|
||||
"-fno-sanitize-recover=all",
|
||||
&file_path,
|
||||
|
||||
Reference in New Issue
Block a user