blob: 6e91a8489b405e2574f547b5c6bf5f5549888aa0 [file] [log] [blame]
Roman Levenstein35aa5ce2016-03-16 18:00:46 +00001// 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.
7void 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.
14void boo() __attribute__((preserve_all)) {
15 // CHECK-LABEL: define preserve_allcc void @boo()
16}
17