diff options
| author | Zack Weinberg <zack@gcc.gnu.org> | 2000-03-28 19:20:29 +0000 |
|---|---|---|
| committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-03-28 19:20:29 +0000 |
| commit | 02ff568ab936e0bd7ffbcdb160d5d9e80f92385c (patch) | |
| tree | 078f8cbf0f2d49ce272c99e7d2bef885e451e264 /gcc/testsuite/gcc.dg/cpp-hash2.c | |
| parent | 1f58da7fe3ef4726d9da51f44fee23fea0e07157 (diff) | |
| download | gcc-02ff568ab936e0bd7ffbcdb160d5d9e80f92385c.zip gcc-02ff568ab936e0bd7ffbcdb160d5d9e80f92385c.tar.gz gcc-02ff568ab936e0bd7ffbcdb160d5d9e80f92385c.tar.bz2 | |
New test cases
From-SVN: r32785
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp-hash2.c')
| -rw-r--r-- | gcc/testsuite/gcc.dg/cpp-hash2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp-hash2.c b/gcc/testsuite/gcc.dg/cpp-hash2.c new file mode 100644 index 0000000..b47c2a2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp-hash2.c @@ -0,0 +1,15 @@ +/* Test for erroneously thinking comments are token-pastes. + From XFree86 4.0. */ +/* { dg-do preprocess } */ +/* { dg-options "-traditional" } */ + +#ifndef foo +#define foo /**/ +#endif + +#ifndef foo +#define foo /* as nothing */ +#endif + +/* { dg-bogus "(start|end) of macro" "/**/ at end" { target *-*-* } 7 } */ +/* { dg-bogus "(start|end) of macro" "comment at end" { target *-*-* } 11 } */ |
