blob: dcb54e972a50756589ecbdb3d96a4d1aa6aac6f0 [file] [log] [blame]
David Greenecc69872018-08-22 11:34:28 +00001// RUN: %clang -### -c -mcmodel=tiny %s 2>&1 | FileCheck -check-prefix CHECK-TINY %s
Saleem Abdulrasool62849c62014-05-08 02:28:32 +00002// RUN: %clang -### -c -mcmodel=small %s 2>&1 | FileCheck -check-prefix CHECK-SMALL %s
3// RUN: %clang -### -S -mcmodel=kernel %s 2>&1 | FileCheck -check-prefix CHECK-KERNEL %s
4// RUN: %clang -### -c -mcmodel=medium %s 2>&1 | FileCheck -check-prefix CHECK-MEDIUM %s
5// RUN: %clang -### -S -mcmodel=large %s 2>&1 | FileCheck -check-prefix CHECK-LARGE %s
6// RUN: not %clang -c -mcmodel=lager %s 2>&1 | FileCheck -check-prefix CHECK-INVALID %s
7
David Greenecc69872018-08-22 11:34:28 +00008// CHECK-TINY: "-mcode-model" "tiny"
Saleem Abdulrasool62849c62014-05-08 02:28:32 +00009// CHECK-SMALL: "-mcode-model" "small"
10// CHECK-KERNEL: "-mcode-model" "kernel"
11// CHECK-MEDIUM: "-mcode-model" "medium"
12// CHECK-LARGE: "-mcode-model" "large"
13
14// CHECK-INVALID: error: invalid value 'lager' in '-mcode-model lager'
15