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

Chris Lattner sabre at nondot.org
Sun May 22 16:53:17 PDT 2011


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?

-Chris



More information about the cfe-commits mailing list