* gcc.dg/cpp/macro9.c: New test.
From-SVN: r45636
This commit is contained in:
parent
0ea009fc53
commit
3617ff1e5d
@ -1,3 +1,7 @@
|
||||
2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* gcc.dg/cpp/macro9.c: New test.
|
||||
|
||||
2001-09-15 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/980223.c: Change type of addr from long
|
||||
|
14
gcc/testsuite/gcc.dg/cpp/macro9.c
Normal file
14
gcc/testsuite/gcc.dg/cpp/macro9.c
Normal file
@ -0,0 +1,14 @@
|
||||
/* Copyright (C) 2001 Free Software Foundation, Inc. */
|
||||
|
||||
/* { dg-do compile } */
|
||||
|
||||
/* Source: Neil Booth, 15 Sep 2001.
|
||||
|
||||
A silly test to check that if a function-like macro name is
|
||||
immediately followed by a directive, then we process the directive
|
||||
properly. */
|
||||
|
||||
#define int()
|
||||
int
|
||||
#define main main () { return 0; }
|
||||
main
|
Loading…
Reference in New Issue
Block a user