rt_gccstream/gcc/testsuite/gcc.dg/pr22231.c

8 lines
231 B
C

/* Test case for PR 22231. -c and -MG are invalid together. */
/* { dg-do compile } */
/* { dg-options "-MG -MD -c" } */
/* { dg-error "may only be used with -M" "-MG incompatible with -c" { target *-*-* } 0 } */
int anything;