2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / special / conpr-1.C
blobc91753dc4959c0637057f87106a615ae43cb5db4
1 /* { dg-do run } */
3 #include <stdlib.h>
5 class foo_t {
6     int x;
7 public:
8     foo_t(void) { x=1; }
9     int get(void) { return x; }
12 static foo_t foo __attribute__((init_priority(5000)));
14 int main(void) {
16     if (foo.get())
17         exit(0);
18     else
19         abort();