aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@gcc.gnu.org>2004-11-23 03:13:53 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2004-11-23 03:13:53 +0000
commitcf19bf02c4c4edbc67742a098bda628d1e145a15 (patch)
tree55b1f7f3ae0f6a5d55b106fa0532e4b0f12804b0 /gcc
parent0aed4efbb01f206cc3372a416da25357e4294406 (diff)
downloadgcc-cf19bf02c4c4edbc67742a098bda628d1e145a15.zip
gcc-cf19bf02c4c4edbc67742a098bda628d1e145a15.tar.gz
gcc-cf19bf02c4c4edbc67742a098bda628d1e145a15.tar.bz2
Testcase from PR rtl-optimization/18611
From-SVN: r91069
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/20041122-1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20041122-1.c b/gcc/testsuite/gcc.dg/20041122-1.c
new file mode 100644
index 0000000..2d9facc
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20041122-1.c
@@ -0,0 +1,17 @@
+/* PR rtl-optimization/18611 */
+/* { dg-do compile } */
+/* { dg-options "-O1 -fmove-loop-invariants" } */
+typedef struct {
+ int channels_per_image;
+ int channel[8];
+} CineonImageInformation;
+void
+dumpCineonImageInfo(CineonImageInformation* imageInfo) {
+
+ int i;
+ for (i = 0; i < imageInfo->channels_per_image; ++i) {
+ dumpCineonChannelInfo(&imageInfo->channel[i]);
+ }
+}
+
+