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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-noexcept3.C
blob
9541bc0781d501b4c1f310b8635673867441e36d
1
// { dg-do compile { target c++11 } }
2
3
constexpr int f(int i) { return i; }
4
#define SA(X) static_assert (X, #X)
5
SA(noexcept(f(42)));
6
int j;
7
SA(!noexcept(f(j)));