aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@gcc.gnu.org>2002-02-12 09:02:04 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2002-02-12 09:02:04 +0000
commitaa3aae06f94e6e064f2fcb229393496be6f0aa5f (patch)
tree224281d85d1b1e0a2d25d016a729543bcf5cf1cf /gcc
parente77acf81ccdf1dc5bb0aa53aa4da557cb1219aa3 (diff)
downloadgcc-aa3aae06f94e6e064f2fcb229393496be6f0aa5f.zip
gcc-aa3aae06f94e6e064f2fcb229393496be6f0aa5f.tar.gz
gcc-aa3aae06f94e6e064f2fcb229393496be6f0aa5f.tar.bz2
decl-1.c: Add do-compile tag.
2002-02-12 Benjamin Kosnik <bkoz@redhat.com> Neil Booth <neil.booth@bnpparibas.com> * gcc.dg/decl-1.c: Add do-compile tag. From-SVN: r49705
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/decl-1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/decl-1.c b/gcc/testsuite/gcc.dg/decl-1.c
index e66b853..23e490b 100644
--- a/gcc/testsuite/gcc.dg/decl-1.c
+++ b/gcc/testsuite/gcc.dg/decl-1.c
@@ -5,6 +5,8 @@
In the declaration of proc, x must be parsed as a typedef name
(6.7.5.3 p11). */
+/* { dg-do compile } */
+
typedef int x;
int proc(int (x)); /* x is a typedef, param to proc is a function. */
int proc2(int x); /* x is an identifier, param is an int. */