Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / pr16855.C
blobd7aa8a4f72cb01774464ebd534422273a0b566c9
1 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
2 /* { dg-do run { target native } } */
4 #include <stdlib.h>
5 #include <stdio.h>
7 int a;
9 void
10 foo ()
12   fprintf (stderr, "In foo\n");
13   a = 123; /* count(1) */
16 using namespace std;
17 class Test
19 public:
20   Test (void) { fprintf (stderr, "In Test::Test\n"); /* count(1) */ }
21   ~Test (void) { fprintf (stderr, "In Test::~Test\n"); /* count(1) */ }
22 } T1;
24 void
25 uncalled (void)
27   fprintf (stderr, "In uncalled\n"); /* count(#####) */
30 int
31 main (void)
33   atexit (&foo);
34   fprintf (stderr, "In main\n"); /* count(1) */
35   return 0;
38 static void __attribute__ ((constructor)) ctor_default ()
40   fprintf (stderr, "in constructor(())\n"); /* count(1) */
43 static void __attribute__ ((destructor)) dtor_default ()
45   fprintf (stderr, "in destructor(())\n"); /* count(1) */
48 /* { dg-final { run-gcov branches { -b pr16855.C } } } */