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 extern void abort (void);
8 extern void exit (int);
10 int expect_do1
= 1, expect_do2
= 2;
12 static int doit(int x
){
15 static int jtab_init
= 0;
30 static void do1(void) {
31 if (doit(0) != expect_do1
)
35 static void do2(void){
36 if (doit(1) != expect_do2
)
40 int main(void){ /* count(1) */
41 #ifndef NO_LABEL_VALUES
45 exit(0); /* count(1) */
48 /* { dg-final { run-gcov gcov-3.c } } */