summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/sh-relax-vxworks.c
blob: f8c2ffef431a71dc60929f6cfde5e19dba03ad43 (plain)
1
2
3
4
5
/* Check that -mrelax produces the correct error message.  */
/* { dg-do compile { target { sh-*-vxworks* && nonpic } } } */
/* { dg-error "-mrelax is only supported for RTP PIC" "" { target *-*-* } 0 } */
/* { dg-options "-O1 -mrelax" } */
int x;