blob: 60ca88d4542ae411c7d4ae8610223f5c02c0237d [file] [log] [blame]
// { dg-do run { target c++11 } }
struct A
{
int i = 42;
int j = f();
int k = this->f();
int f() { return i++; }
};
A a;
int main()
{
if (a.j != 42 || a.k != 43 || a.i != 44)
__builtin_abort();
}