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