1/* This doesn't work on solaris2 for reasons described in PR 6482.  */
2/* { dg-do run { xfail *-*-solaris2* } } */
3/* { dg-additional-sources "conpr-2a.cc" } */
4
5#include <stdlib.h>
6
7class foo_t {
8    int x;
9    static int count;
10public:
11    foo_t(void) { x=++count; }
12    int get(void) { return x; }
13};
14
15int foo_t::count;
16
17extern foo_t foo1, foo2;
18
19int main(void) {
20
21    if ( (foo1.get() != 2) || (foo2.get() != 1) )
22        abort();
23    exit(0);
24}
25