summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/mac/xcode-gcc/aliasing.cc
blob: 16a41efb15cc331f9f666444c35d5ea962d164ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

void check(int* h, long* k) {
  *h = 1;
  *k = 0;
  printf("%d\n", *h);
}

int main(void) {
  long k;
  check((int*)&k, &k);
  return 0;
}