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
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi-defer1.C
blob
e1b9d69290f990ff7436769957a63a5d0cf32a5a
1
// { dg-do compile { target c++11 } }
2
3
#define SA(X) static_assert(X,#X)
4
5
struct A
6
{
7
int i = f();
8
int j { f() };
9
static constexpr int f() { return 42; }
10
};
11
12
constexpr A a;
13
SA(a.i == 42);
14
SA(a.j == 42);