aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/gcov-16.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2011-11-20 09:09:34 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2011-11-20 09:09:34 +0000
commit89b0c30334402ea94a4edcb08f0e82c9f86d9d4b (patch)
tree0aeff57f2bcf6a88201dbda657eb6d07666898ca /gcc/testsuite/gcc.misc-tests/gcov-16.c
parentfcb36e7363f231cd0b58f500ef6fabf6da214e32 (diff)
downloadgcc-89b0c30334402ea94a4edcb08f0e82c9f86d9d4b.zip
gcc-89b0c30334402ea94a4edcb08f0e82c9f86d9d4b.tar.gz
gcc-89b0c30334402ea94a4edcb08f0e82c9f86d9d4b.tar.bz2
re PR gcov-profile/51113 (rev. 181105 causes Firefox profiledbuild failure)
PR gcov-profile/51113 * coverage.c (build_var): Propagate visibility for public decls. testsuite/ * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage * gcc.misc-tests/gcov-16.c: New. * gcc.misc-tests/gcov-17.c: New. * g++.dg/gcov/gcov-8.C: New. * g++.dg/gcov/gcov-9.C: New. * g++.dg/gcov/gcov-10.C: New. From-SVN: r181524
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests/gcov-16.c')
-rw-r--r--gcc/testsuite/gcc.misc-tests/gcov-16.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/gcov-16.c b/gcc/testsuite/gcc.misc-tests/gcov-16.c
new file mode 100644
index 0000000..b05c4a0
--- /dev/null
+++ b/gcc/testsuite/gcc.misc-tests/gcov-16.c
@@ -0,0 +1,11 @@
+/* Test visibility is copied */
+
+/* { dg-options "-fprofile-arcs -fvisibility=hidden" } */
+/* { dg-require-visibility "" } */
+/* { dg-require-weak "" } */
+
+void Foo ()
+{
+}
+
+ /* { dg-final { scan-assembler "\\.hidden\t__gcov__Foo" } } */