xref: /llvm-project/clang/test/CodeGen/AArch64/varargs-ms.c (revision 207e5ccceec8d3cc3f32723e78f2a142bc61b07d)
1*207e5cccSFangrui Song // RUN: %clang_cc1 -triple arm64-windows-msvc -emit-llvm -o - %s | FileCheck %s
2*207e5cccSFangrui Song 
3*207e5cccSFangrui Song #include <stdarg.h>
4*207e5cccSFangrui Song 
5*207e5cccSFangrui Song int simple_int(va_list ap) {
6*207e5cccSFangrui Song // CHECK-LABEL: define dso_local i32 @simple_int
7*207e5cccSFangrui Song   return va_arg(ap, int);
8*207e5cccSFangrui Song // CHECK: [[RESULT:%[a-z_0-9]+]] = load i32, ptr %argp.cur
9*207e5cccSFangrui Song // CHECK: ret i32 [[RESULT]]
10*207e5cccSFangrui Song }
11