]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/nsdmi-defer4.C
parser.c (inject_this_parameter): Split out from cp_parser_late_return_type_opt.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-defer4.C
1 // { dg-options -std=c++0x }
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 }
This page took 0.036909 seconds and 5 git commands to generate.