1 | // RUN: %clang -### -c -mcmodel=tiny %s 2>&1 | FileCheck -check-prefix CHECK-TINY %s |
2 | // 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 | |
8 | // CHECK-TINY: "-mcode-model" "tiny" |
9 | // 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 | |
16 | |