i386: Support partial vectorized V2BF/V4BF smaxmin
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / pr16855.C
blobf9b86a40001f9c609fd8c8eb64eadf76bbc74975
1 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
2 /* { dg-do run { target native } } */
4 /* See PR91087 for information on Darwin xfails. */
6 #include <stdlib.h>
7 #include <stdio.h>
9 int a;
11 void
12 foo ()
14   fprintf (stderr, "In foo\n");
15   a = 123; /* count(1) */
18 using namespace std;
19 class Test
21 public:
22   Test (void) { fprintf (stderr, "In Test::Test\n"); /* count(1) */ }
23   ~Test (void) {
24    fprintf (stderr, "In Test::~Test\n"); /* count(1) { xfail *-*-darwin* *-*-dragonfly* } */
25   }
26 } T1;
28 void
29 uncalled (void)
31   fprintf (stderr, "In uncalled\n"); /* count(#####) */
34 int
35 main (void)
37   atexit (&foo);
38   fprintf (stderr, "In main\n"); /* count(1) */
39   return 0;
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* } } } */