aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-piemod1.c
blob: 6e98b5f0c27642d61e5f180f05c3f20f01959ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>

int
foo (void)
{
  return 21;
}

static int
do_test (void)
{
  int val = foo ();
  if (val != 34)
    {
      printf ("foo () returned %d\n", val);
      return 1;
    }

  return 0;
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"