[cfe-commits] r63713 - /cfe/trunk/test/Preprocessor/line-directive.c
Piotr Rak
piotr.rak at gmail.com
Wed Feb 4 05:32:47 PST 2009
2009/2/4 Piotr Rak <piotr.rak at gmail.com>:
> Hi Chris,
>
> 2009/2/4 Chris Lattner <sabre at nondot.org>:
>> Author: lattner
>> Date: Tue Feb 3 20:17:09 2009
>> New Revision: 63713
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=63713&view=rev
>> Log:
>> Add simple #line directive test.
>>
>> Modified:
>> cfe/trunk/test/Preprocessor/line-directive.c
>>
>> Modified: cfe/trunk/test/Preprocessor/line-directive.c
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/line-directive.c?rev=63713&r1=63712&r2=63713&view=diff
>>
>
> Starting from this commit make test fails Preprocessor/line-directive.c test.
>
> Running 'clang -E test/Preprocessor/line-directive.c' I get:
>
> test/Preprocessor/line-directive.c:5:7: error: #line directive
> requires a positive integer argument
> #line 'a' // expected-error {{#line directive requires a
> positive integer argument}}
> ^
> test/Preprocessor/line-directive.c:6:7: error: #line directive
> requires a positive integer argument
> #line 0 // expected-error {{#line directive requires a
> positive integer argument}}
> ^
> test/Preprocessor/line-directive.c:42:10: error: invalid filename for
> #line directive
> #line 42 'a' // expected-error {{invalid filename for #line directive}}
> ^
> clang: /home/prak/projects/llvm.git/tools/clang/lib/Basic/SourceManager.cpp:132:
> const char* clang::LineTableInfo::getFilename(unsigned int) const:
> Assertion `ID < FilenamesByID.size() && "Invalid FilenameID"' failed.
> Przerwane
>
> It is linux x86, using gcc 4.1.2 now.
>
I am sorry, that failure was my fault, I should have update llvm
too... After updating, and rebuilding works as expected.
Piotr
More information about the cfe-commits
mailing list