summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static2.C
blob: b68699cf37e819c735b94d95b794f7bf41f9cc59 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Based on a test case by Koos Vriezen <koos@polder.ubc.kun.nl>

struct foo {
    static void (*mystatic) ();
};

void bar(foo& t) {
    t.mystatic ();
}