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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-return1.C
blob
b114e21488819ea345ef48db026a0122cee346fd
1
// { dg-do compile { target c++14 } }
2
3
constexpr int f (int i)
4
{
5
return 24;
6
return 36;
7
}
8
9
constexpr int i = f(42);
10
#define SA(X) static_assert((X),#X)
11
SA(i==24);