* doc/extend.texi: Document optional priority argument to
[official-gcc.git] / gcc / testsuite / g++.dg / special / conpr-4.C
blob40ce21d98b564db452de27ae474bcbd1a41669d0
1 /* { dg-do run { target init_priority } } */
2 /* { dg-additional-sources "conpr-3b.cc conpr-3a.cc" } */
4 #include <stdlib.h>
6 class foo_t {
7     int x;
8     static int count;
9 public:
10     foo_t(void) { x=++count; }
11     int get(void) { return x; }
14 int foo_t::count;
16 extern foo_t foo1, foo2;
18 int main(void) {
20     if ( (foo1.get() != 2) || (foo2.get() != 1) )
21         abort();
22     exit(0);