aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/cpp-output.c
blob: ee37f4cd6853cb15858faa0ae46ef310a55644f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang -E -o %t -C %s &&
// RUN: grep '^int x; // comment' %t &&
// RUN: grep '^x x' %t &&
// RUN: clang -E -o %t -CC %s &&
// RUN: grep '^int x; // comment' %t &&
// RUN: grep '^x /\* comment \*/ x /\* comment \*/' %t &&
// RUN: true

int x; // comment

#define A(foo, bar) foo bar
#define B x // comment 

A(B, B)