Commit bd5c7330 by Tom de Vries Committed by Tom de Vries

Add dot-file scans to pr70161.c

2016-04-18  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/70699
	* gcc.dg/pr70161.c: Add dot-file scans.
	* lib/scandump.exp (dump-suffix): Return suffix after first dot char,
	instead of after last dot char.

From-SVN: r235095
parent 80dbaf98
2016-04-18 Tom de Vries <tom@codesourcery.com>
PR testsuite/70699
* gcc.dg/pr70161.c: Add dot-file scans.
* lib/scandump.exp (dump-suffix): Return suffix after first dot char,
instead of after last dot char.
2016-04-17 Eric Botcazou <ebotcazou@adacore.com> 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
* c-c++-common/dump-ada-spec-3.c: New test. * c-c++-common/dump-ada-spec-3.c: New test.
......
...@@ -5,3 +5,6 @@ void ...@@ -5,3 +5,6 @@ void
foo (void) foo (void)
{ {
} }
/* { dg-final { scan-ipa-dump-times "subgraph" 1 "inline.dot" } } */
/* { dg-final { scan-ipa-dump-times "subgraph" 1 "cp.dot" } } */
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# Extract the constant part of the dump file suffix from the regexp. # Extract the constant part of the dump file suffix from the regexp.
# Argument 0 is the regular expression. # Argument 0 is the regular expression.
proc dump-suffix { arg } { proc dump-suffix { arg } {
set idx [expr [string last "." $arg] + 1] set idx [expr [string first "." $arg] + 1]
return [string range $arg $idx end] return [string range $arg $idx end]
} }
......
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