Add -fsanitize=float-divide-by-zero option

This commit is contained in:
Minseong Jang
2022-04-01 02:31:12 +09:00
parent 5264066a3c
commit 2e11197a58

View File

@@ -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,