[LLVMbugs] [Bug 16952] New: lit reports the wrong line number for #line 0

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 21 01:16:25 PDT 2013


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: unassignedbugs at nondot.org
          Reporter: peter at stairways.com.au
                CC: daniel at zuster.org, llvmbugs at cs.uiuc.edu
    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 at +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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130821/e653d243/attachment.html>


More information about the llvm-bugs mailing list