llvm-c166-tests/tests/codegen/aggregate/test.c
2026-09-16 15:55:48 +03:00

20 lines
418 B
C

#include "c166_test.h"
struct pair {
unsigned int low;
unsigned int high;
};
unsigned int llvm_entry(unsigned int head, struct pair value,
unsigned int tail) {
return head + 2 * value.low + 3 * value.high + 4 * tail;
}
void main(void) {
struct pair value;
value.low = 11U;
value.high = 13U;
tap_plan(1);
tap_is_u32(llvm_entry(7U, value, 17U), 136U, "aggregate argument");
}