opnsense-src/test/Frontend/cpp-output.c

15 lines
295 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang -E -o %t -C %s
2009-11-18 09:59:57 -05:00
// RUN: grep '^int x; // comment' %t
// RUN: grep '^x x' %t
2010-01-01 05:34:51 -05:00
// RUN: %clang -E -o %t -CC %s
2009-11-18 09:59:57 -05:00
// RUN: grep '^int x; // comment' %t
// RUN: grep '^x /\* comment \*/ x /\* comment \*/' %t
2009-06-14 05:24:02 -04:00
int x; // comment
#define A(foo, bar) foo bar
#define B x // comment
A(B, B)