Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-defer4.C

raw
1 // { dg-do run { target c++11 } }
2
3 struct A
4 {
5 int i = 42;
6 int j = f();
7 int k = this->f();
8 int f() { return i++; }
9 };
10
11 A a;
12
13 int main()
14 {
15 if (a.j != 42 || a.k != 43 || a.i != 44)
16 __builtin_abort();
17 }