45 lines
603 B
C
45 lines
603 B
C
#include <assert.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
#ifdef _MSC_VER
|
|
__declspec(align(16))
|
|
struct TwoU64s
|
|
{
|
|
uint64_t a;
|
|
uint64_t b;
|
|
};
|
|
#else
|
|
struct __attribute__((aligned(16))) TwoU64s
|
|
{
|
|
uint64_t a;
|
|
uint64_t b;
|
|
};
|
|
#endif
|
|
|
|
struct BoolAndU32
|
|
{
|
|
bool a;
|
|
uint32_t b;
|
|
};
|
|
|
|
int32_t many_args(
|
|
void *a,
|
|
void *b,
|
|
const char *c,
|
|
uint64_t d,
|
|
bool e,
|
|
struct BoolAndU32 f,
|
|
void *g,
|
|
struct TwoU64s h,
|
|
void *i,
|
|
void *j,
|
|
void *k,
|
|
void *l,
|
|
const char *m)
|
|
{
|
|
assert(strcmp(m, "Hello world") == 0);
|
|
return 0;
|
|
}
|