summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr40340-5.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-05 15:35:13 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-05 15:35:13 +0000
commitf63d3ecc34e8b969b3c940f14e725815c1ef3215 (patch)
tree12a9da39bc6bfc83111af358d8b58d60dbbd2f22 /gcc/testsuite/gcc.dg/pr40340-5.c
parent454f25be4550106b133980287ac7da30d2767f92 (diff)
downloadgcc-f63d3ecc34e8b969b3c940f14e725815c1ef3215.tar.gz
PR middle-end/40340
* tree-ssa-live.c (remove_unused_scope_block_p): Don't prune inlined_function_outer_scope_p blocks for artificial inlines even at -g0/-g1. * tree.c (tree_nonartificial_location): Rewrite using block_nonartificial_location. * gcc.dg/pr40340-1.c: New test. * gcc.dg/pr40340-2.c: New test. * gcc.dg/pr40340-3.c: New test. * gcc.dg/pr40340-4.c: New test. * gcc.dg/pr40340-5.c: New test. * gcc.dg/pr40340.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr40340-5.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr40340-5.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr40340-5.c b/gcc/testsuite/gcc.dg/pr40340-5.c
new file mode 100644
index 00000000000..f50514c3ac9
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr40340-5.c
@@ -0,0 +1,17 @@
+/* PR middle-end/40340 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -Wall -Wsystem-headers -g" } */
+
+#define TEST3
+#include "pr40340.h"
+
+int
+main (void)
+{
+ char buf[4];
+ test3 (buf);
+ return 0;
+}
+
+/* { dg-warning "will always overflow destination buffer" "" { target *-*-* } 10 } */
+/* { dg-message "file included" "In file included" { target *-*-* } 0 } */