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