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

#include "mips-nonpic.h"

main ()
{
  pic_call ();
  nonpic_addr ();

  if (hit_pic_call != 1)
    abort ();

  if (hit_nonpic_addr != 2)
    abort ();

  exit (0);
}