1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "byval1.h" extern "C" void abort (void); extern void Foo (C c); extern int r; void byval1_x () { C c; Foo (c); if (r != 0) abort (); }