aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20020318-1.c
diff options
context:
space:
mode:
author(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-26 22:20:04 +0000
committer(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-26 22:20:04 +0000
commitf320c3ac365f33ed8f571937331e47bd6fea30c1 (patch)
treec08f6bd797dfa24d348853d46c27e28d1e799194 /gcc/testsuite/gcc.c-torture/compile/20020318-1.c
parent1373952868cb7ac8a23bc9f8f292cb61ef65c652 (diff)
This commit was manufactured by cvs2svn to create taggcc-3_2-branchpoint
'gcc-3_2-branchpoint'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/gcc-3_2-branchpoint@55784 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20020318-1.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020318-1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020318-1.c b/gcc/testsuite/gcc.c-torture/compile/20020318-1.c
new file mode 100644
index 00000000000..097a35d7956
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20020318-1.c
@@ -0,0 +1,16 @@
+/* PR c/5656
+ This testcase ICEd on IA-32 at -O3, due to tree inliner not converting
+ parameter assignment when using K&R syntax. */
+
+void foo (c)
+ char c;
+{
+ (void) &c;
+}
+
+int bar (void);
+
+void baz (void)
+{
+ foo (bar ());
+}