llvm-project/clang/test/CodeGen/arm-byval-align.c
Fangrui Song c5de4dd1ea [test] %clang_cc1 -emit-llvm: remove redundant -S
And replace -emit-llvm -o - with -emit-llvm-only
2024-05-04 17:00:29 -07:00

15 lines
289 B
C

// RUN: %clang_cc1 -triple=armv7-none-eabi < %s -emit-llvm | FileCheck %s
struct foo {
long long a;
char b;
int c:16;
int d[16];
};
// CHECK: ptr noundef byval(%struct.foo) align 8 %z
long long bar(int a, int b, int c, int d, int e,
struct foo z) {
return z.a;
}