Fix a test-case for Darwin.
authorMartin Liska <mliska@suse.cz>
Wed, 11 Oct 2017 12:22:48 +0000 (14:22 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 11 Oct 2017 12:22:48 +0000 (12:22 +0000)
2017-10-11  Martin Liska  <mliska@suse.cz>

* c-c++-common/ubsan/ptr-overflow-sanitization-1.c: Scan
optimized dump rather than assembly.

From-SVN: r253636

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/ptr-overflow-sanitization-1.c

index 15b3a79457c08d834ff59bebce4f9a4f8e49bf42..8b60350710d18ba36eff91e997c1b1dd37735ab9 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-11  Martin Liska  <mliska@suse.cz>
+
+       * c-c++-common/ubsan/ptr-overflow-sanitization-1.c: Scan
+       optimized dump rather than assembly.
+
 2017-10-11  Nathan Sidwell  <nathan@acm.org>
 
        * g++.dg/cpp/string-3.C: Fix dg-final.
index 42c14523764aeac251af401658bdedd7b9cb518a..c12c7df252b9b9ca01c998cfa121abf4f7467368 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-require-effective-target lp64 } */
-/* { dg-options "-O -fsanitize=pointer-overflow" } */
+/* { dg-options "-O -fsanitize=pointer-overflow -fdump-tree-optimized" } */
 /* { dg-skip-if "" { *-*-* } "-flto" } */
 
 #define SMAX   __PTRDIFF_MAX__
@@ -76,5 +75,4 @@ void negative_to_negative (char *ptr)
   p2 += 5;
 }
 
-
-/* { dg-final { scan-assembler-times "call\\s+__ubsan_handle_pointer_overflow" 17 } } */
+/* { dg-final { scan-tree-dump-times "__ubsan_handle_pointer_overflow" 17 "optimized" } } */