* gcc.dg/decl-1.c: New test.
From-SVN: r49702
This commit is contained in:
parent
26e9664c30
commit
3bb91036a0
@ -1,3 +1,7 @@
|
||||
2002-02-12 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* gcc.dg/decl-1.c: New test.
|
||||
|
||||
2002-02-12 David Billinghurst <David.Billinghurst@riotinto.com>
|
||||
|
||||
* gcc.dg/c99-flex-array-2.c: Add -std=iso9899:1999
|
||||
|
15
gcc/testsuite/gcc.dg/decl-1.c
Normal file
15
gcc/testsuite/gcc.dg/decl-1.c
Normal file
@ -0,0 +1,15 @@
|
||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
|
||||
Source: Neil Booth, 12 Feb 2002.
|
||||
|
||||
In the declaration of proc, x must be parsed as a typedef name
|
||||
(6.7.5.3 p11). */
|
||||
|
||||
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. */
|
||||
|
||||
int main ()
|
||||
{
|
||||
return proc (proc2); /* { dg-bogus "integer from pointer" } */
|
||||
}
|
Loading…
Reference in New Issue
Block a user