mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-13 08:00:22 -04:00
14 lines
381 B
C
14 lines
381 B
C
// RUN: %clang_cc1 -triple aarch64_be-linux-gnu -ffreestanding -emit-llvm -O0 -o - %s | FileCheck %s
|
|
|
|
#include <stdarg.h>
|
|
|
|
// A single member HFA must be aligned just like a non-HFA register argument.
|
|
double callee(int a, ...) {
|
|
// CHECK: = add i64 %{{.*}}, 8
|
|
va_list vl;
|
|
va_start(vl, a);
|
|
double result = va_arg(vl, struct { double a; }).a;
|
|
va_end(vl);
|
|
return result;
|
|
}
|