summaryrefslogtreecommitdiffstats
path: root/testsuite/filter1.c
blob: e6b186ced38dea27e91d2f3c80aa6ccf495e1a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "filter1.h"
#include <stdlib.h>

int main()
{
  if (f1 () != 54 || f2 () != 54 || f3 () != 54)
    abort ();
  if (foo1.a != 1 || *foo1.b != 24 || *foo1.c != 30)
    abort ();
  if (foo2.a != 2 || *foo2.b != 24 || *foo2.c != 30)
    abort ();
  if (pfoo1p->a != 1 || *pfoo1p->b != 24 || *pfoo1p->c != 30)
    abort ();
  if (pfoo2p->a != 2 || *pfoo2p->b != 24 || *pfoo2p->c != 30)
    abort ();
  exit (0);
}