repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if15.C
blob
1dd8beab89ca5d17e82e4e4b0a8f3f646ead257c
1
// PR c++/84854
2
// { dg-do compile { target c++17 } }
3
4
constexpr int foo () { return 1; }
5
constexpr int foo (int) { return 2; }
6
7
template <typename>
8
void a()
9
{
10
if constexpr(foo) { };
11
}