aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr30189.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2007-02-20 20:16:49 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2007-02-20 20:16:49 +0000
commitfd08c1f3c60128f7c7c72d8403d55b014984c92f (patch)
treed8ebb3a71e447692194c65cb7a89b31be10dcf81 /gcc/testsuite/gcc.dg/pr30189.c
parent8bd117bacae1851567f1116e0b4b41ba6d121f6e (diff)
svn merge -r121963:122172 svn+ssh://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branch/redhat/gcc-4_1-branch-java-merge-20070117
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branch-java-merge-20070117@122173 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr30189.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr30189.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr30189.c b/gcc/testsuite/gcc.dg/pr30189.c
new file mode 100644
index 00000000000..6aa963e7a10
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr30189.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-g -O" } */
+
+extern void foo (void);
+
+static
+void baz (int i)
+{
+ foo ();
+ typedef char A[i];
+ struct { A b; } *x = 0;
+}
+
+void
+bar (i)
+{
+ baz (i);
+}