diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-18 22:29:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-18 22:29:33 +0000 |
commit | dff070fb0f2880806ef1ae5471ace37a97dd9e6a (patch) | |
tree | 5a107d1447c2116446ef087e9b864853d6169dcf /test/Preprocessor/line-directive.c | |
parent | 88e2524b8f3393975872a23bbe6e8b3cf50d6773 (diff) |
Fix PR3917: the location of a #line directive is the location of the first _.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/line-directive.c')
-rw-r--r-- | test/Preprocessor/line-directive.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Preprocessor/line-directive.c b/test/Preprocessor/line-directive.c index 04c69a6791..a9ed4bcf8c 100644 --- a/test/Preprocessor/line-directive.c +++ b/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 _ */ + + + |