* gcc.dg/pr45259.c: Only -fpic depends on fpic support.

From-SVN: r189899
This commit is contained in:
Janis Johnson 2012-07-26 22:23:33 +00:00 committed by Janis Johnson
parent e45abe1f20
commit 3984ea61cb
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-07-26 Janis Johnson <janisjo@codesourcery.com>
* gcc.dg/pr45259.c: Only -fpic depends on fpic support.
2012-07-26 Richard Henderson <rth@redhat.com>
* gcc.dg/attr-hotcold-1.c: New.

View file

@ -1,6 +1,7 @@
/* PR debug/45259 */
/* { dg-do compile } */
/* { dg-options "-g -O2 -fpic -w" { target fpic } } */
/* { dg-options "-g -O2 -w -fpic" { target fpic } } */
/* { dg-options "-g -O2 -w" { target { ! fpic } } } */
struct S { void (*bar) (long); };
struct T { struct S *t; };