summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/mac/xcode-gcc/aliasing.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/gyp/test/mac/xcode-gcc/aliasing.cc')
-rw-r--r--third_party/python/gyp/test/mac/xcode-gcc/aliasing.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/mac/xcode-gcc/aliasing.cc b/third_party/python/gyp/test/mac/xcode-gcc/aliasing.cc
new file mode 100644
index 0000000000..16a41efb15
--- /dev/null
+++ b/third_party/python/gyp/test/mac/xcode-gcc/aliasing.cc
@@ -0,0 +1,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;
+}