File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
// RUN: %clang --target=x86_64 -### -S -mcmodel=large %s 2>&1 | FileCheck --check-prefix=LARGE %s
6
6
// RUN: %clang --target=powerpc-unknown-aix -### -S -mcmodel=medium %s 2> %t.log
7
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
9
- // RUN: not %clang -c --target=aarch64 -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=AARCH64-MEDIUM %s
10
- // RUN: not %clang -c --target=aarch64 -mcmodel=kernel %s 2>&1 | FileCheck --check-prefix=AARCH64-KERNEL %s
8
+ // RUN: not %clang -### -c -mcmodel=lager %s 2>&1 | FileCheck --check-prefix=INVALID %s
9
+ // RUN: %clang --target=aarch64 -### -S -mcmodel=large -fno-pic %s 2>&1 | FileCheck --check-prefix=LARGE %s
10
+ // RUN: not %clang -### -c --target=aarch64 -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=ERR-MEDIUM %s
11
+ // RUN: not %clang -### -c --target=aarch64 -mcmodel=kernel %s 2>&1 | FileCheck --check-prefix=ERR-KERNEL %s
11
12
12
13
// TINY: "-mcmodel=tiny"
13
14
// SMALL: "-mcmodel=small"
18
19
19
20
// INVALID: error: invalid argument 'lager' to -mcmodel=
20
21
21
- // AARCH64 -MEDIUM: error: invalid argument 'medium' to -mcmodel=
22
- // AARCH64 -KERNEL: error: invalid argument 'kernel' to -mcmodel=
22
+ // ERR -MEDIUM: error: invalid argument 'medium' to -mcmodel=
23
+ // ERR -KERNEL: error: invalid argument 'kernel' to -mcmodel=
You can’t perform that action at this time.
0 commit comments