LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.misc-tests / gcov-18.c
blobae1017866db9f906f60ae83c947a8a68ff2f056f
1 /* Test gcov block mode. As the example does jump to a statement
2 that is on a line with different ones, we must calculate such jump
3 just once. */
5 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
6 /* { dg-do run { target native } } */
8 int a = 0;
10 void foo() /* count(1) */
12 a = 1;
15 void bar() /* count(1) */
17 a++;
20 int main() /* count(1) */
22 foo (); goto baz; lab: bar (); /* count(2) */
24 baz:
25 if (a == 1) /* count(2) */
26 goto lab; /* count(1) */
29 /* { dg-final { run-gcov { gcov-18.c } } } */