repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-stmtexpr2.C
blob
34ca9fa997455bf9403d45f16b8d30d223e8e951
1
// { dg-do compile { target c++11 } }
2
// { dg-options "" }
3
4
#define SA(X) static_assert((X),#X)
5
6
template <class T>
7
constexpr T f (T t)
8
{
9
return ({ t+1; });
10
}
11
12
SA(f(42) == 43);