aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-02-05 23:14:07 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2001-02-05 23:14:07 +0100
commit2f4e8f2b108db0a476093feeef1c8fd48afce03f (patch)
treef3582ba0288e61f8a5be8be41e75972d35b45ab3 /gcc/testsuite
parent58f60b5c912f2d45fb969331221d80cb00c00138 (diff)
downloadgcc-2f4e8f2b108db0a476093feeef1c8fd48afce03f.zip
gcc-2f4e8f2b108db0a476093feeef1c8fd48afce03f.tar.gz
gcc-2f4e8f2b108db0a476093feeef1c8fd48afce03f.tar.bz2
c-typeck.c (common_type): push and pop binding level around calling common_type on function parameters.
* c-typeck.c (common_type): push and pop binding level around calling common_type on function parameters. * gcc.c-torture/compile/20010202-1.c: New test. From-SVN: r39467
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010202-1.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2cec5af..3ce1ec3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-02-05 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.c-torture/compile/20010202-1.c: New test.
+
2001-02-05 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.abi/primary2.C: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010202-1.c b/gcc/testsuite/gcc.c-torture/compile/20010202-1.c
new file mode 100644
index 0000000..e72586a
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20010202-1.c
@@ -0,0 +1,6 @@
+int foo (int n, char m[1][n]);
+
+int foo (int n, char m[1][n])
+{
+}
+