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

#include "mips-nonpic.h"

main ()
{
  nonpic_call ();
  pic_nothing ();

  if (hit_nonpic_call != 1)
    abort ();

  if (hit_pic_nothing != 2)
    abort ();

  exit (0);
}