summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-18 22:29:33 +0000
committerChris Lattner <sabre@nondot.org>2009-04-18 22:29:33 +0000
commitbf78da7b3669385b204b7d7736c6dd2dd230a540 (patch)
tree5f38a93d7fb3fcba345155025c9faf03b82a8cec /clang/test/Preprocessor
parent93017cc12a15c742469a57a14f0665143fe440ff (diff)
downloadbcm5719-llvm-bf78da7b3669385b204b7d7736c6dd2dd230a540.tar.gz
bcm5719-llvm-bf78da7b3669385b204b7d7736c6dd2dd230a540.zip
Fix PR3917: the location of a #line directive is the location of the first _.
llvm-svn: 69485
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/line-directive.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/line-directive.c b/clang/test/Preprocessor/line-directive.c
index 04c69a6791a..a9ed4bcf8cd 100644
--- a/clang/test/Preprocessor/line-directive.c
+++ b/clang/test/Preprocessor/line-directive.c
@@ -79,3 +79,11 @@ typedef int w; // expected-error {{redefinition of typedef 'w' is invalid in C}
#line 010 // expected-warning {{#line directive interprets number as decimal, not octal}}
extern int array[__LINE__ == 10 ? 1:-1];
+/* PR3917 */
+#line 41
+extern char array2[\
+_\
+_LINE__ == 42 ? 1: -1]; /* line marker is location of first _ */
+
+
+
OpenPOWER on IntegriCloud