aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorAlan Modra <alan@linuxcare.com.au>2001-03-27 06:03:40 +0000
committerAlan Modra <amodra@gcc.gnu.org>2001-03-27 15:33:40 +0930
commitb13aca193b0d72af3a249cabe0951ba39a60b693 (patch)
tree9d657f8e53779d5aabf29191ccae9bf3d24c43f4 /gcc/testsuite
parent005a5cb08b854e411ef9941d4fcb9de0bbce755a (diff)
downloadgcc-b13aca193b0d72af3a249cabe0951ba39a60b693.zip
gcc-b13aca193b0d72af3a249cabe0951ba39a60b693.tar.gz
gcc-b13aca193b0d72af3a249cabe0951ba39a60b693.tar.bz2
* c-typeck.c (digest_init): Fold init expression.
From-SVN: r40867
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010327-1.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 86736d3..dbebcac 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-27 Alan Modra <alan@linuxcare.com.au>
+
+ * gcc.c-torture/compile/20010327-1.c: New test.
+
2001-03-26 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/friend12.C: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010327-1.c b/gcc/testsuite/gcc.c-torture/compile/20010327-1.c
new file mode 100644
index 0000000..fc31a6e
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20010327-1.c
@@ -0,0 +1,2 @@
+extern void _text;
+static unsigned long x = (unsigned long) &_text - 0x10000000L - 1;