summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/special/conpr-3a.cc
blob: b237bb57f36e9fb27f53dda84af71df0551cf3ef (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do run } */

class foo_t {
    int x;
    static int count;
public:
    foo_t(void) { x=++count; }
    int get(void) { return x; }
};

foo_t foo1 __attribute__((init_priority(6000)));