summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c
blob: b31ab3bee7bf4d59aa1993c908de11ac6ef80af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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