http://llvm.org/bugs/show_bug.cgi?id=16952

            Bug ID: 16952
           Summary: lit reports the wrong line number for #line 0
           Product: Test Suite
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: lit
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

lit reports the #line 0 warning to be on line 4294967295.

The following test case demonstrates the problem:

****
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wgnu 

// expected-warning@+1 {{#line directive with zero argument is a GNU
extension}}
#line 0
****

Note that a test like this:

#line 0 // expected-warning {{#line directive with zero argument is a GNU
extension}}

does not cause a problem.

Also note that clang correctly reports the warning on the relevant line (not 4
in this case).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to