-
-
Save vosen/baa3e405b5dffb38e4fd to your computer and use it in GitHub Desktop.
win64 ffi miscompile working c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
typedef struct data { | |
uint64_t bar; | |
uint64_t baz; | |
} data; | |
void foo(data a1, | |
data a2, | |
data a3, | |
data a4, | |
data a5) { | |
printf("%d\n", a1.bar); | |
printf("%d\n", a2.bar); | |
printf("%d\n", a3.bar); | |
printf("%d\n", a4.bar); | |
printf("%d\n", a5.bar); | |
} | |
void c_main(void); | |
int main(void) { | |
c_main(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment