diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/glibc-uclibc-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/glibc-uclibc-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/glibc-uclibc-1.c b/gcc/testsuite/gcc.dg/glibc-uclibc-1.c new file mode 100644 index 00000000000..46c417536dc --- /dev/null +++ b/gcc/testsuite/gcc.dg/glibc-uclibc-1.c @@ -0,0 +1,6 @@ +/* Test -mglibc and -muclibc not allowed together. */ +/* Origin: Joseph Myers <joseph@codesourcery.com> */ +/* { dg-do link { target *-*-linux* } } */ +/* { dg-options "-mglibc -muclibc" } */ + +/* { dg-error "-mglibc and -muclibc used together" "" { target *-*-* } 0 } */ |