2 // GROUPS passed code-generation
3 // Check that sub-word sized structs/classes are passed correctly
4 // if the struct/class has a constructor (i.e. ANY constructor).
6 extern "C" int printf (const char *, ...);
19 int test2 (base formal_base);
23 global_base.f1 = 0x55;
24 global_base.f2 = 0xee;
26 if (test2 (global_base) == 0)
29 { printf ("FAIL\n"); return 1; }
34 int test2 (base formal_base)
36 if (formal_base.f1 != global_base.f1)
38 if (formal_base.f2 != global_base.f2)