Commit b1a651a2 by Martin Liska Committed by Martin Liska

Fix a test-case for Darwin.

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
parent d71031ff
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.
......
/* { 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" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment