gcc/libmudflap/testsuite/libmudflap.c/pass63-frag.c
Volker Reichelt 7621f5d5fb common.opt (Wmudflap): New option.
* common.opt (Wmudflap): New option.
	* tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
	(mx_register_decls): Likewise.
	(mudflap_finish_file): Likewise.
	* doc/invoke.texi: Document -Wno-mudflap.

	* testsuite/libmudflap.c/pass63-frag.c: New test.

From-SVN: r133385
2008-03-20 16:37:47 +00:00

7 lines
189 B
C

/* Check -Wno-mudflap flag */
/* { dg-do compile } */
/* { dg-options "-fmudflap -Wno-mudflap" } */
extern char x[];
int main() { return x[3]; } /* { dg-bogus "mudflap cannot track" } */