* gcc.dg/cpp/macro9.c: New test.

From-SVN: r45636
This commit is contained in:
Neil Booth 2001-09-15 18:38:46 +00:00 committed by Neil Booth
parent 0ea009fc53
commit 3617ff1e5d
2 changed files with 18 additions and 0 deletions

View File

@ -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

View 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