8sa1-gcc/gcc/testsuite/g++.dg/special/conpr-3b.C

12 lines
192 B
C++
Raw Normal View History

1999-02-07 10:40:17 -05:00
/* { dg-do run } */
class foo_t {
int x;
static int count;
public:
foo_t(void) { x=++count; }
int get(void) { return x; }
};
foo_t foo2 __attribute__((init_priority(5000)));