diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-09 16:10:38 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-09 16:10:38 +0000 |
commit | bd09cd3e0a1b43658bb0d2169721ff2b3e95ea0e (patch) | |
tree | b925af300345e743bbc19d811c98bee55425729c /gcc/testsuite/gcc.dg/pr29254.c | |
parent | f406e07ef5dee51738e05a3546ec5af3dd0974c9 (diff) | |
download | gcc-bd09cd3e0a1b43658bb0d2169721ff2b3e95ea0e.tar.gz |
2006-10-09 Richard Guenther <rguenther@suse.de>
PR middle-end/29254
* cgraphunit.c (verify_cgraph_node): Bail out on earlier
errors.
* gcc.dg/pr29254.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117577 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr29254.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr29254.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr29254.c b/gcc/testsuite/gcc.dg/pr29254.c new file mode 100644 index 00000000000..6259089d4fb --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr29254.c @@ -0,0 +1,22 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -Werror" } */ +/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */ + +list_compare (int * list1) +{ + if (list1) + value_compare (); +} + +func1 (int * f){} + +value_compare (int * a) +{ + if (a) + list_compare (a); +} + +func2 (const int * fb) +{ + func1 ((int *) fb); /* { dg-warning "discards qualifiers" } */ +} |