<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - lit reports the wrong line number for #line 0"
   href="http://llvm.org/bugs/show_bug.cgi?id=16952">16952</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lit reports the wrong line number for #line 0
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Test Suite
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>lit
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>peter@stairways.com.au
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>daniel@zuster.org, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>