2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 \
|
2011-03-18 01:10:06 +08:00
|
|
|
// RUN: -mkernel -### -fsyntax-only %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-X86 < %t %s
|
|
|
|
|
|
|
|
// CHECK-X86: "-disable-red-zone"
|
|
|
|
// CHECK-X86: "-fno-builtin"
|
|
|
|
// CHECK-X86: "-fno-rtti"
|
|
|
|
// CHECK-X86: "-fno-common"
|
|
|
|
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 \
|
2012-11-29 08:42:06 +08:00
|
|
|
// RUN: -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2> %t
|
2011-03-18 01:10:06 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ARM < %t %s
|
|
|
|
|
2011-03-23 00:48:17 +08:00
|
|
|
// CHECK-ARM: "-backend-option" "-arm-long-calls"
|
|
|
|
// CHECK-ARM: "-backend-option" "-arm-strict-align"
|
2012-11-29 08:42:06 +08:00
|
|
|
// CHECK-ARM-NOT: "-backend-option" "-arm-strict-align"
|
2011-03-18 01:10:06 +08:00
|
|
|
// CHECK-ARM: "-fno-builtin"
|
|
|
|
// CHECK-ARM: "-fno-rtti"
|
|
|
|
// CHECK-ARM: "-fno-common"
|
2012-03-27 06:43:28 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 \
|
|
|
|
// RUN: -Werror -fno-builtin -fno-exceptions -fno-common -fno-rtti \
|
|
|
|
// RUN: -mkernel -fsyntax-only %s
|