diff options
author | Martin Sebor <msebor@redhat.com> | 2016-03-16 17:42:41 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2016-03-16 11:42:41 -0600 |
commit | b2794066f3691f020a0fa096c4bab76fe94d7957 (patch) | |
tree | 5371f29bc520c11059616a9ba307eefb3a34dd82 | |
parent | 6ab71a016183605bc45a16310bc1f0e7ad216933 (diff) | |
download | gcc-b2794066f3691f020a0fa096c4bab76fe94d7957.zip gcc-b2794066f3691f020a0fa096c4bab76fe94d7957.tar.gz gcc-b2794066f3691f020a0fa096c4bab76fe94d7957.tar.bz2 |
g++.dg/cpp1y/constexpr-instantiate.C: Correct DejaGnu directives.
From-SVN: r234264
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/constexpr-instantiate.C | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 451e653..76b57ea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-03-16 Martin Sebor <msebor@redhat.com> + + * g++.dg/cpp1y/constexpr-instantiate.C: Correct DejaGnu directives. + 2016-03-16 Richard Henderson <rth@redhat.com> PR middle-end/70199 diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-instantiate.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-instantiate.C index 73d0508..ab2021b 100644 --- a/gcc/testsuite/g++.dg/cpp1y/constexpr-instantiate.C +++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-instantiate.C @@ -1,7 +1,7 @@ // PR c++/58281 - Problem with explicitly instantiated constexpr template // functions // { dg-do compile { target c++11 } } -// { do-additional-options "-fdump-tree-optimized" } +// { dg-options "-fdump-tree-optimized" } template <typename T> @@ -17,4 +17,5 @@ bool g (int x) { return f (x); } template bool f<int>(int); // Verify that the defintions of both f() and g() are emitted. -// { dg-final { scan-tree-dump "bool \[fg\](" "optimized" } } +// { dg-final { scan-tree-dump-times "\nconstexpr bool f\\\(" 1 "optimized" } } +// { dg-final { scan-tree-dump-times "\nbool g\\\(" 1 "optimized" } } |