Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 1 | // RUN: %clang -target x86_64-apple-darwin10 \ |
Daniel Dunbar | fa41d69 | 2011-03-17 17:10:06 +0000 | [diff] [blame] | 2 | // 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 Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 10 | // RUN: %clang -target x86_64-apple-darwin10 \ |
Chad Rosier | 586a061 | 2012-11-29 00:42:06 +0000 | [diff] [blame] | 11 | // RUN: -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2> %t |
Daniel Dunbar | fa41d69 | 2011-03-17 17:10:06 +0000 | [diff] [blame] | 12 | // RUN: FileCheck --check-prefix=CHECK-ARM < %t %s |
| 13 | |
Daniel Dunbar | 3c66d30 | 2011-03-22 16:48:17 +0000 | [diff] [blame] | 14 | // CHECK-ARM: "-backend-option" "-arm-long-calls" |
| 15 | // CHECK-ARM: "-backend-option" "-arm-strict-align" |
Chad Rosier | 586a061 | 2012-11-29 00:42:06 +0000 | [diff] [blame] | 16 | // CHECK-ARM-NOT: "-backend-option" "-arm-strict-align" |
Daniel Dunbar | fa41d69 | 2011-03-17 17:10:06 +0000 | [diff] [blame] | 17 | // CHECK-ARM: "-fno-builtin" |
| 18 | // CHECK-ARM: "-fno-rtti" |
| 19 | // CHECK-ARM: "-fno-common" |
Chad Rosier | d3d7d4d | 2012-03-26 22:43:28 +0000 | [diff] [blame] | 20 | |
| 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 |