OSDN Git Service

PR rtl-optimization/17933
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Nov 2004 18:30:57 +0000 (18:30 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Nov 2004 18:30:57 +0000 (18:30 +0000)
* gcc.dg/torture/pr17933-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90182 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr17933-1.c [new file with mode: 0644]

index 66fb099..83ef0c7 100644 (file)
@@ -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 (file)
index 0000000..02c597b
--- /dev/null
@@ -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);
+}