aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr17933-1.c14
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 66fb099..83ef0c7 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-06 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR rtl-optimization/17933
+ * gcc.dg/torture/pr17933-1.c: New test.
+
2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
PR target/18106
diff --git a/gcc/testsuite/gcc.dg/torture/pr17933-1.c b/gcc/testsuite/gcc.dg/torture/pr17933-1.c
new file mode 100644
index 0000000..02c597b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr17933-1.c
@@ -0,0 +1,14 @@
+/* PR rtl-optimization/17933.
+ Test-case from the ObjC test-suite, execute/class_self-2.m,
+ translated to C from and reduced by Andrew Pinski. */
+
+struct d
+{ int a; };
+void abort(void);
+typedef struct d (*f) (int i);
+f ff(void);
+void test1()
+{
+ f t = ff();
+ t(0);
+}