llvm-for-llvmta/tools/clang/test/Preprocessor/print_line_track.c

18 lines
308 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
/* RUN: %clang_cc1 -E %s | grep 'a 3'
* RUN: %clang_cc1 -E %s | grep 'b 16'
* RUN: %clang_cc1 -E -P %s | grep 'a 3'
* RUN: %clang_cc1 -E -P %s | grep 'b 16'
* RUN: %clang_cc1 -E %s | not grep '# 0 '
* RUN: %clang_cc1 -E -P %s | count 4
* PR1848 PR3437 PR7360
*/
#define t(x) x
t(a
3)
t(b
__LINE__)