From 7f9a94e1f88e27143f52a05da2ef3467081f2508 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 10 Jul 2019 01:53:11 +0000 Subject: [PATCH] [ubsan][test] Restore float-divide-by-zero test Removed by rCTE365307 to fix buildbots. It can be restored now because D64317/rC365587 brought back -fsanitize=float-divide-by-zero llvm-svn: 365591 --- compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp b/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp index 02c4d3b79d40..0c18db5aa18d 100644 --- a/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp +++ b/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp @@ -1,6 +1,7 @@ // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=0 %s -o %t && %run %t 2>&1 | FileCheck %s // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=1U %s -o %t && %run %t 2>&1 | FileCheck %s // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND='intmax(123)' %s -o %t && %run %t 2>&1 | FileCheck %s +// RUN: %clangxx -fsanitize=float-divide-by-zero -DDIVIDEND=1.5 %s -o %t && %run %t 2>&1 | FileCheck %s #if defined(__SIZEOF_INT128__) && !defined(_WIN32) typedef __int128 intmax;