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

#include "mips-nonpic.h"

main ()
{
  nonpic_call ();
  pic_addr ();

  if (hit_nonpic_call != 1)
    abort ();

  if (hit_pic_addr != 2)
    abort ();

  exit (0);

}