blob: 8282c05dd8f18fc75968510c8a1420a3daa49550 [file] [log] [blame]
Sebastian Pop9ec60df2012-01-20 22:01:23 +00001// RUN: %clang -target x86_64-apple-darwin10 \
Daniel Dunbarfa41d692011-03-17 17:10:06 +00002// RUN: -mkernel -### -fsyntax-only %s 2> %t
3// RUN: FileCheck --check-prefix=CHECK-X86 < %t %s
4
5// CHECK-X86: "-disable-red-zone"
6// CHECK-X86: "-fno-builtin"
7// CHECK-X86: "-fno-rtti"
8// CHECK-X86: "-fno-common"
9
Sebastian Pop9ec60df2012-01-20 22:01:23 +000010// RUN: %clang -target x86_64-apple-darwin10 \
Chad Rosier586a0612012-11-29 00:42:06 +000011// RUN: -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2> %t
Daniel Dunbarfa41d692011-03-17 17:10:06 +000012// RUN: FileCheck --check-prefix=CHECK-ARM < %t %s
13
Daniel Dunbar3c66d302011-03-22 16:48:17 +000014// CHECK-ARM: "-backend-option" "-arm-long-calls"
15// CHECK-ARM: "-backend-option" "-arm-strict-align"
Chad Rosier586a0612012-11-29 00:42:06 +000016// CHECK-ARM-NOT: "-backend-option" "-arm-strict-align"
Daniel Dunbarfa41d692011-03-17 17:10:06 +000017// CHECK-ARM: "-fno-builtin"
18// CHECK-ARM: "-fno-rtti"
19// CHECK-ARM: "-fno-common"
Chad Rosierd3d7d4d2012-03-26 22:43:28 +000020
21// RUN: %clang -target x86_64-apple-darwin10 \
22// RUN: -Werror -fno-builtin -fno-exceptions -fno-common -fno-rtti \
23// RUN: -mkernel -fsyntax-only %s