2 // GROUPS passed initialization
3 // p2766: Make sure that members are initialized in order of declaration
4 // in the class, not in order of specification in the mem-initializer list.
6 extern "C" int printf (const char *, ...);
7 extern "C" void exit (int);
11 void die () { printf ("FAIL\n"); exit (1); }
15 bar1 (int) { if (count != 0) die (); count = 1; }
21 bar2 (int) { if (count != 1) die (); count = 2; }
32 // bar1 should get built before bar2
33 foo::foo (int x, int y) : b(x), a(y) {}