summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/static-mem4.C
blob: 4e61c69334c260c865dd32b8cb3c6bf9bdda9e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// GROUPS passed static-mem
struct test {
  void test_member() {
    static test& ds = *this;    // FIX: static test* ds = this;
  }
};


int main()
{
  test t;
}