Skip to content

Commit 8958f0d

Browse files
committed
[Driver][test] Improve mcmodel.c
1 parent ca8d02d commit 8958f0d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

clang/test/Driver/mcmodel.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
// RUN: %clang --target=x86_64 -### -S -mcmodel=large %s 2>&1 | FileCheck --check-prefix=LARGE %s
66
// RUN: %clang --target=powerpc-unknown-aix -### -S -mcmodel=medium %s 2> %t.log
77
// 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
1112

1213
// TINY: "-mcmodel=tiny"
1314
// SMALL: "-mcmodel=small"
@@ -18,5 +19,5 @@
1819

1920
// INVALID: error: invalid argument 'lager' to -mcmodel=
2021

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=

0 commit comments

Comments
 (0)