re PR sanitizer/70875 (ICE in get_ubsan_type_info_for_type with -fsanitize=undefined)
authorJakub Jelinek <jakub@redhat.com>
Thu, 1 Mar 2018 23:28:31 +0000 (00:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 1 Mar 2018 23:28:31 +0000 (00:28 +0100)
PR sanitizer/70875
* gcc.dg/ubsan/bounds-3.c: Add -fno-sanitize-recover=bounds to
dg-options and dg-shouldfail "ubsan" directive.

From-SVN: r258117

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/bounds-3.c

index abd409e7df71b18b0d401a905a3e5c5a1f69df5b..ef84baf39706a2cf0d22004da06fdd2025752801 100644 (file)
@@ -1,3 +1,9 @@
+2018-03-02  Jakub Jelinek  <jakub@redhat.com>
+
+       PR sanitizer/70875
+       * gcc.dg/ubsan/bounds-3.c: Add -fno-sanitize-recover=bounds to
+       dg-options and dg-shouldfail "ubsan" directive.
+
 2018-03-01  Marek Polacek  <polacek@redhat.com>
            Jason Merrill  <jason@redhat.com>
 
index 50ad67389f8a82f14e26b3789146ae2146f7ca2a..c9d896d1903bae0468843544c54081d941923cb6 100644 (file)
@@ -1,6 +1,7 @@
 /* PR sanitizer/70875 */
 /* { dg-do run } */
-/* { dg-options "-fsanitize=bounds" } */
+/* { dg-options "-fsanitize=bounds -fno-sanitize-recover=bounds" } */
+/* { dg-shouldfail "ubsan" } */
 
 int
 foo (int n, int k)