1 /* Test Gcov with computed gotos.
2 This is the same as test gcc.c-torture/execute/980526-1.c */
4 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
5 /* { dg-do run { target native } } */
7 int expect_do1
= 1, expect_do2
= 2;
9 static int doit(int x
){
12 static int jtab_init
= 0;
27 static void do1(void) {
28 if (doit(0) != expect_do1
)
32 static void do2(void){
33 if (doit(1) != expect_do2
)
37 int main(void){ /* count(1) */
38 #ifndef NO_LABEL_VALUES
42 exit(0); /* count(1) */
45 /* { dg-final { run-gcov gcov-3.c } } */