561cb39b35
From-SVN: r25071
19 lines
253 B
C
19 lines
253 B
C
/* { dg-do run } */
|
|
|
|
class foo_t {
|
|
int x;
|
|
public:
|
|
foo_t(void) { x=1; }
|
|
int get(void) { return x; }
|
|
};
|
|
|
|
static foo_t foo __attribute__((init_priority(5000)));
|
|
|
|
int main(void) {
|
|
|
|
if (foo.get())
|
|
exit(0);
|
|
else
|
|
abort();
|
|
}
|