aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/union_passing.c
blob: b0ce6319d8cd6cbf3668bfb8e9962a8751414358 (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 <stdint.h>
#include <stdio.h>
static int32_t bk;
union ba {
  int64_t bb;
};
static void dada(union ba);
void nothing(void);
void stuff(void) {
  union ba f = {5};
  int32_t i[1000];
  nothing();
  dada(f);
}
static void dada(union ba k) {
  bk = k.bb;
}
void nothing(void) {
}
int main() {
  stuff();
  printf("result = %d\n", bk);
}