summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-09 23:53:25 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-09 23:53:25 +0000
commit5070ea2573839cfecce24d60598ba6c7b344d751 (patch)
tree9d5fa49e12d3c284513f1d430c28ea685e1fe1e7
parent2ced9b418c84382fe2e0e95aaa5b361ace3420b3 (diff)
downloadgcc-5070ea2573839cfecce24d60598ba6c7b344d751.tar.gz
* gcc.c-torture/compile/20020109-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48701 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020109-2.c30
2 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c840926352b..8221e54f844 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jan 9 16:48:33 2002 Alan Matsuoka (alanm@redhat.com)
+
+ * gcc.c-torture/compile/20020109-2.c: New test.
+
2002-01-09 Gwenole Beauchesne <bgeauchesne@mandrakesoft.com>
* gcc.c-torture/execute/loop-10.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020109-2.c b/gcc/testsuite/gcc.c-torture/compile/20020109-2.c
new file mode 100644
index 00000000000..31673156569
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20020109-2.c
@@ -0,0 +1,30 @@
+typedef union
+{
+ unsigned char member3;
+ signed short member4;
+ unsigned int member5;
+}
+UNI02;
+
+struct srt_dat_t
+{
+ UNI02 un2;
+ unsigned long member1;
+ signed short member2;
+};
+
+struct srt_dat_t exsrt1;
+void
+extern_test (struct srt_dat_t arg1)
+{
+ arg1.un2.member3++;
+ arg1.member1++;
+ arg1.member2++;
+}
+
+int
+main (void)
+{
+ extern_test (exsrt1);
+ return (0);
+}