1 // RUN: %clang --target=x86_64 -### -c -mcmodel=medium -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARG %s
2 // RUN: %clang --target=x86_64 -### -c -mcmodel=small -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=SMALL %s
3 // RUN: not %clang --target=riscv32 -### -c -mcmodel=medium -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARCH %s
5 // ARG: "-mlarge-data-threshold=200"
7 // SMALL: 'mlarge-data-threshold=' only applies to medium code model
8 // ARCH: unsupported option 'mlarge-data-threshold=' for target 'riscv32'