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

#include "mips-nonpic.h"

main ()
{
  nonpic_addr_call ();
  pic_addr_call ();

  if (hit_nonpic_addr_call != 1)
    abort ();

  if (hit_pic_addr_call != 1)
    abort ();

  exit (0);
}