diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/mac-dir-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/mac-dir-2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c b/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c new file mode 100644 index 000000000..b31ab3bee --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c @@ -0,0 +1,16 @@ +/* Copyright (C) 2002 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ + +/* Source: Neil Booth, 26 Feb 2002. + + Test that we allow directives in macro arguments. */ + +/* { dg-do preprocess } */ + +#define f(x) x + +f ( +#if 1 /* { dg-error "not portable" } */ +1) +#endif |