diff options
Diffstat (limited to 'clang/test/Driver/mips-gpopt-warning.c')
| -rw-r--r-- | clang/test/Driver/mips-gpopt-warning.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/mips-gpopt-warning.c b/clang/test/Driver/mips-gpopt-warning.c new file mode 100644 index 00000000000..a8ab887939e --- /dev/null +++ b/clang/test/Driver/mips-gpopt-warning.c @@ -0,0 +1,6 @@ +// REQUIRES: mips-registered-target +// RUN: %clang -### -c -target mips-mti-elf %s -mgpopt 2>&1 | FileCheck -check-prefix=IMPLICIT %s +// IMPLICIT: warning: ignoring '-mgpopt' option as it cannot be used with the implicit usage of-mabicalls + +// RUN: %clang -### -c -target mips-mti-elf %s -mgpopt -mabicalls 2>&1 | FileCheck -check-prefix=EXPLICIT %s +// EXPLICIT: warning: ignoring '-mgpopt' option as it cannot be used with -mabicalls |

