1 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
2 /* { dg-do run { target native } } */
4 /* See PR91087 for information on Darwin xfails. */
14 fprintf (stderr, "In foo\n");
15 a = 123; /* count(1) */
22 Test (void) { fprintf (stderr, "In Test::Test\n"); /* count(1) */ }
24 fprintf (stderr, "In Test::~Test\n"); /* count(1) { xfail *-*-darwin* *-*-dragonfly* } */
31 fprintf (stderr, "In uncalled\n"); /* count(#####) */
38 fprintf (stderr, "In main\n"); /* count(1) */
42 static void __attribute__ ((constructor)) ctor_default ()
44 fprintf (stderr, "in constructor(())\n"); /* count(1) */
47 static void __attribute__ ((destructor)) dtor_default ()
49 fprintf (stderr, "in destructor(())\n"); /* count(1) { xfail *-*-darwin* } */
52 /* { dg-final { run-gcov branches { -b pr16855.C } { xfail *-*-darwin* *-*-dragonfly* } } } */