aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/print_line_count.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-15 01:25:23 +0000
committerChris Lattner <sabre@nondot.org>2009-06-15 01:25:23 +0000
commit3ee211fd15dfeeb51bb69681084cdfcea427f314 (patch)
tree43dd9f86553962f798e64abe1e93190f8dac7950 /test/Preprocessor/print_line_count.c
parent2a8e4e1d8548dc3e30d7c9ba92127c7884a11448 (diff)
Fix PR2741 by making our newline tracking be aware of newlines that
can occur in the middle of comment tokens. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/print_line_count.c')
-rw-r--r--test/Preprocessor/print_line_count.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/print_line_count.c b/test/Preprocessor/print_line_count.c
new file mode 100644
index 0000000000..2eb62df486
--- /dev/null
+++ b/test/Preprocessor/print_line_count.c
@@ -0,0 +1,4 @@
+/* RUN: clang -E -C -P %s | wc -l | grep 4
+ PR2741
+ comment */
+y