From: Neil Booth Date: Sat, 15 Sep 2001 18:38:46 +0000 (+0000) Subject: * gcc.dg/cpp/macro9.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3617ff1e5d2e4a91a2d3e28055b5ff9bca5d5d8f;p=gcc.git * gcc.dg/cpp/macro9.c: New test. From-SVN: r45636 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d42cec9b6c..0aea5b73aae 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 00000000000..f79d15c575d --- /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