2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / gcov-3.C
blobaff063a4b90f4ba631828f9afb965f7688779027
1 /* Check that gcov doesn't abort when a static object is defined
2    within a header file.  */
4 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
5 /* { dg-do run { target native } } */
7 #include "gcov-3.h"
9 extern int foo();
11 int
12 main ()
14   return foo();                                /* count(1) */
17 /* { dg-final { run-gcov gcov-3.C } } */