[committed] Fix gcc.misc-tests/gcov-12.c test on hpux10

Submitted by John David Anglin on Dec. 9, 2012, 6:40 p.m.

Details

Message ID 20121209184051.GC20144@hiauly1.hia.nrc.ca
State New
Headers show

Commit Message

John David Anglin Dec. 9, 2012, 6:40 p.m.
The dg order is wrong.  As a result, dg-require-weak is ignored and
test fails on hpux10 which doesn't have weak.

Committed to trunk.

Dave

Patch hide | download patch | download mbox

Index: gcc.misc-tests/gcov-12.c
===================================================================
--- gcc.misc-tests/gcov-12.c	(revision 194055)
+++ gcc.misc-tests/gcov-12.c	(working copy)
@@ -1,8 +1,8 @@ 
 /* Test gcov weak ellision.  */
 
+/* { dg-do run { target native } } */
+/* { dg-require-weak "" } */
 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
-/* { dg-require-weak "" } */
-/* { dg-do run { target native } } */
 
 int __attribute__ ((weak)) weak ()
 {