1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm < %s | FileCheck %s
2 // RUN: %clang_cc1 -triple arm64-unknown-unknown -emit-llvm < %s | FileCheck %s
3 
4 // Check that the preserve_most calling convention attribute at the source level
5 // is lowered to the corresponding calling convention attrribute at the LLVM IR
6 // level.
foo()7 void foo() __attribute__((preserve_most)) {
8   // CHECK-LABEL: define preserve_mostcc void @foo()
9 }
10 
11 // Check that the preserve_most calling convention attribute at the source level
12 // is lowered to the corresponding calling convention attrribute at the LLVM IR
13 // level.
boo()14 void boo() __attribute__((preserve_all)) {
15   // CHECK-LABEL: define preserve_allcc void @boo()
16 }
17 
18