[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / mcmodel.c
blob2c74c966744af17a798f7d3fa6e778aad99e3610
1 // RUN: %clang -target x86_64 -### -c -mcmodel=tiny %s 2>&1 | FileCheck --check-prefix=TINY %s
2 // RUN: %clang -target x86_64 -### -c -mcmodel=small %s 2>&1 | FileCheck --check-prefix=SMALL %s
3 // RUN: %clang -target x86_64 -### -S -mcmodel=kernel %s 2>&1 | FileCheck --check-prefix=KERNEL %s
4 // RUN: %clang -target x86_64 -### -c -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=MEDIUM %s
5 // RUN: %clang -target x86_64 -### -S -mcmodel=large %s 2>&1 | FileCheck --check-prefix=LARGE %s
6 // RUN: %clang -target powerpc-unknown-aix -### -S -mcmodel=medium %s 2> %t.log
7 // RUN: FileCheck --check-prefix=AIX-MCMEDIUM-OVERRIDE %s < %t.log
8 // RUN: not %clang -c -mcmodel=lager %s 2>&1 | FileCheck --check-prefix=INVALID %s
10 // TINY: "-mcmodel=tiny"
11 // SMALL: "-mcmodel=small"
12 // KERNEL: "-mcmodel=kernel"
13 // MEDIUM: "-mcmodel=medium"
14 // LARGE: "-mcmodel=large"
15 // AIX-MCMEDIUM-OVERRIDE: "-mcmodel=large"
17 // INVALID: error: invalid argument 'lager' to -mcmodel=