summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/mips-nonpic/main-11.c
blob: 1d8a6d20cdf3b67c39751cfaca054b53e47abe3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-options "nonpic-addr.o pic-addr.o nonpic-receive-fn-addr.o pic-receive-fn-addr.o nonpic-nothing.o pic-nothing.o" } */

#include "mips-nonpic.h"

main ()
{
  nonpic_addr ();
  pic_addr ();

  if (hit_nonpic_addr != 1)
    abort ();

  if (hit_pic_addr != 1)
    abort ();

  exit (0);
}