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
+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>
* c-c++-common/dump-ada-spec-3.c: New test.
foo (void)
{
}
+
+/* { dg-final { scan-ipa-dump-times "subgraph" 1 "inline.dot" } } */
+/* { dg-final { scan-ipa-dump-times "subgraph" 1 "cp.dot" } } */
# Extract the constant part of the dump file suffix from the regexp.
# Argument 0 is the regular expression.
proc dump-suffix { arg } {
- set idx [expr [string last "." $arg] + 1]
+ set idx [expr [string first "." $arg] + 1]
return [string range $arg $idx end]
}