view clang/test/Preprocessor/print_line_track.c @ 176:de4ac79aef9d

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 17:13:11 +0900
parents 1d019706d866
children c4bab56944e8
line wrap: on
line source

/* 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__)