summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-12 09:02:04 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-12 09:02:04 +0000
commit774a18762d79d4dee0bbb251871037f416cf208b (patch)
tree224281d85d1b1e0a2d25d016a729543bcf5cf1cf /gcc/testsuite
parente1fe6109c26401687d80922b481b3dba185cfa73 (diff)
downloadgcc-774a18762d79d4dee0bbb251871037f416cf208b.tar.gz
2002-02-12 Benjamin Kosnik <bkoz@redhat.com>
Neil Booth <neil.booth@bnpparibas.com> * gcc.dg/decl-1.c: Add do-compile tag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-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 e66b85376da..23e490b15c5 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. */