aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/pr83487-1_x.c
blob: b5b208f7d93e3e09a4dd2cefd89dfee7acdd3745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */
#include "pr83487-1.h"

extern
#ifdef __cplusplus
"C"
#endif
void abort ();

void
f1 (int i, int j, int k, int l, int m, int n, int o, struct A x)
{
  if (i != 6 || j != 0 || k != 1 || l != 2 || m != 3 || n != 4 || o != 5)
    abort ();
}

void
f2 (int i, int j, int k, int l, int m, int n, int o, struct A x, int p, int q)
{
  if (i != 6 || j != 0 || k != 1 || l != 2 || m != 3 || n != 4 || o != 5 || p != 7 || q != 8)
    abort ();
}

void
f3 (int i, int j, int k, int l, int m, int n, int o, struct B x, int p, int q)
{
  if (i != 6 || j != 0 || k != 1 || l != 2 || m != 3 || n != 4 || o != 5 || p != 7 || q != 8)
    abort ();
}

void
f4 (int i, int j, int k, int l, int m, int n, int o, struct C x, int p, int q)
{
  if (i != 6 || j != 0 || k != 1 || l != 2 || m != 3 || n != 4 || o != 5 || p != 7 || q != 8)
    abort ();
}

void
f5 (int o, struct A x)
{
  if (o != 5)
    abort ();
}

void
f6 (int o, struct A x, int p, int q)
{
  if (o != 5 || p != 7 || q != 8)
    abort ();
}

void
f7 (int o, struct B x, int p, int q)
{
  if (o != 5 || p != 7 || q != 8)
    abort ();
}

void
f8 (int o, struct C x, int p, int q)
{
  if (o != 5 || p != 7 || q != 8)
    abort ();
}