summaryrefslogtreecommitdiff
path: root/test/CodeGen/arm-long-calls.c
blob: cff2d660711346b18dad9ecf1c702ed98c148b80 (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -triple thumbv7-apple-ios5  -target-feature +long-calls -emit-llvm -o - %s | FileCheck -check-prefix=LONGCALL %s
// RUN: %clang_cc1 -triple thumbv7-apple-ios5 -emit-llvm -o - %s | FileCheck -check-prefix=NOLONGCALL %s

// LONGCALL: attributes #0 = { {{.*}} "target-features"="+long-calls,+thumb-mode"
// NOLONGCALL-NOT: attributes #0 = { {{.*}} "target-features"="+long-calls,+thumb-mode"

int foo1(int a) { return a; }