[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / arch-armv7k.c
bloba331a0d2bbd282f3333ee8d0f47db0f272a976d2
1 // Tests that make sure armv7k is mapped to the correct CPU and ABI choices
3 // RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -c %s -### 2>&1 | FileCheck %s
4 // CHECK: "-cc1"{{.*}} "-target-cpu" "cortex-a7"
5 // CHECK-NOT: "-exception-model=sjlj"
7 // "thumbv7k-apple-ios" is a bit of a weird triple, but since the backend is
8 // going to choose to use dwarf-based exceptions for it, the front-end needs to
9 // match.
11 // RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -miphoneos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s
13 // RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7 -mwatchos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SJLJ
14 // CHECK-SJLJ: "-exception-model=sjlj"