From: neil Date: Sat, 15 Sep 2001 18:38:46 +0000 (+0000) Subject: * gcc.dg/cpp/macro9.c: New test. X-Git-Tag: upstream/4.9.2~92051 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3df6a90b2a26d85030b74b7a5b1870af7e0f856d;p=platform%2Fupstream%2Flinaro-gcc.git * gcc.dg/cpp/macro9.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45636 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d42cec..0aea5b7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-09-15 Neil Booth + + * gcc.dg/cpp/macro9.c: New test. + 2001-09-15 Aldy Hernandez * gcc.c-torture/execute/980223.c: Change type of addr from long diff --git a/gcc/testsuite/gcc.dg/cpp/macro9.c b/gcc/testsuite/gcc.dg/cpp/macro9.c new file mode 100644 index 0000000..f79d15c --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/macro9.c @@ -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