diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/gcov/gcov-3.h')
-rw-r--r-- | gcc/testsuite/g++.dg/gcov/gcov-3.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/gcov/gcov-3.h b/gcc/testsuite/g++.dg/gcov/gcov-3.h new file mode 100644 index 000000000..1c7ca00dd --- /dev/null +++ b/gcc/testsuite/g++.dg/gcov/gcov-3.h @@ -0,0 +1,31 @@ +/* Leave unused lines for at least the length of the including source file. */ + + + + + + + + + + + + + + + + + + + +struct T { + int i; + T() { i = 0; } +}; + +T t; + +int foo() +{ + return t.i; /* count(1) */ +} |