summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-20 16:37:47 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-20 16:37:47 +0000
commitf63eb5d36d7d12fc7f0703dfc6fa5cbbf7315f18 (patch)
treedb109e002ced660063996b0db54b6059f20aa4f5 /libmudflap/testsuite
parent9a5e2a74356e5a43623c64af454771774cdabad7 (diff)
downloadgcc-f63eb5d36d7d12fc7f0703dfc6fa5cbbf7315f18.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133385 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/testsuite')
-rw-r--r--libmudflap/testsuite/libmudflap.c/pass63-frag.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmudflap/testsuite/libmudflap.c/pass63-frag.c b/libmudflap/testsuite/libmudflap.c/pass63-frag.c
new file mode 100644
index 00000000000..a5ad8f26b08
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c/pass63-frag.c
@@ -0,0 +1,6 @@
+/* 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" } */