Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b2794066
Commit
b2794066
authored
Mar 16, 2016
by
Martin Sebor
Committed by
Martin Sebor
Mar 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g++.dg/cpp1y/constexpr-instantiate.C: Correct DejaGnu directives.
From-SVN: r234264
parent
6ab71a01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp1y/constexpr-instantiate.C
+3
-2
No files found.
gcc/testsuite/ChangeLog
View file @
b2794066
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
...
...
gcc/testsuite/g++.dg/cpp1y/constexpr-instantiate.C
View file @
b2794066
// PR c++/58281 - Problem with explicitly instantiated constexpr template
// functions
// { dg-do compile { target c++11 } }
// { d
o-additional
-options "-fdump-tree-optimized" }
// { d
g
-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" } }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment