diff mbox

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

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

Commit Message

John David Anglin Dec. 9, 2012, 6:40 p.m. UTC
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
diff mbox

Patch

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 ()
 {