[cfe-commits] r131871 - in /cfe/trunk: lib/Lex/Pragma.cpp test/Preprocessor/pragma_sysheader.c

Francois Pichet pichet2000 at gmail.com
Sun May 22 16:58:35 PDT 2011


On Sun, May 22, 2011 at 7:53 PM, Chris Lattner <sabre at nondot.org> wrote:
>
> On May 22, 2011, at 4:51 PM, Francois Pichet wrote:
>
>>> +// PR9861: Verify that line markers are not messed up in -E mode.
>>> +// CHECK: # 1 "{{.*}}pragma_sysheader.h" 1
>>> +// CHECK-NEXT: # 1 "{{.*}}pragma_sysheader.h" 3
>>> +// CHECK-NEXT: typedef int x;
>>> +// CHECK-NEXT: typedef int x;
>>> +// CHECK-NEXT: # 5 "{{.*}}pragma_sysheader.c" 2
>>>
>> This fail on Windows:
>>
>> 1>  Command 2 Stderr:
>> 1>  C:\dev\llvm\llvm_trunk\tools\clang\test\Preprocessor\pragma_sysheader.c:8:11:
>> error: expected string not found in input
>> 1>  // CHECK: # 1 "{{.*}}pragma_sysheader.h" 1
>> 1>            ^
>> 1>  <stdin>:1:1: note: scanning from here
>> 1>  #line 1 "C:\\dev\\llvm\\llvm_trunk\\tools\\clang\\test\\Preprocessor\\pragma_sysheader.c"
>> 1>  ^
>> 1>  <stdin>:12:61: note: possible intended match here
>> 1>  #line 1 "C:\\dev\\llvm\\llvm_trunk\\tools\\clang\\test\\Preprocessor/pragma_sysheader.h"
>>
>> any idea?
>
> We're apparently generating #line directives on windows.  Does r131882 fix this?


yes thanks.




More information about the cfe-commits mailing list