FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.dg / special / conpr-3.C
blobc5fc235e779bed9a38848526fd090ccb12107198
1 /* { dg-do run } */
3 #include <stdlib.h>
5 class foo_t {
6     int x;
7     static int count;
8 public:
9     foo_t(void) { x=++count; }
10     int get(void) { return x; }
13 int foo_t::count;
15 extern foo_t foo1, foo2;
17 int main(void) {
19     if ( (foo1.get() != 2) || (foo2.get() != 1) )
20         abort();
21     exit(0);