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
/
cpp0x
/
constexpr-value3.C
blob
8fd9c744536d534ba4cb1e651f68c9a829be0435
1
// PR c++/50234
2
// { dg-do compile { target c++11 } }
3
4
#define SA(X) static_assert((X),#X)
5
6
struct A { int i; };
7
8
constexpr int f(A a) { return a.i; }
9
10
SA(f({}) == 0);