diff options
author | Simon Dardis <simon.dardis@imgtec.com> | 2017-07-19 10:39:15 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@imgtec.com> | 2017-07-19 10:39:15 +0000 |
commit | 2e25cff3e7ad047f83c8f45b7430bbbfbfa8aeea (patch) | |
tree | 1fa0d5322448ab52d39ccbaeb61e4cd44c04d8db | |
parent | fbee01299238342c5bd82bcf90b8e0dfc283be4d (diff) |
[mips] Add warning test for -mgpopt option.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308432 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Driver/mips-gpopt-warning.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/mips-gpopt-warning.c b/test/Driver/mips-gpopt-warning.c new file mode 100644 index 0000000000..a8ab887939 --- /dev/null +++ b/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 |