[LLVMbugs] [Bug 16919] New: Can't use [[@LINE]] in CHECK-LABEL

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 16 09:09:24 PDT 2013


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

            Bug ID: 16919
           Summary: Can't use [[@LINE]] in CHECK-LABEL
           Product: Test Suite
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: lit
          Assignee: unassignedbugs at nondot.org
          Reporter: jordan_rose at apple.com
                CC: daniel at zuster.org, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

FileCheck's new CHECK-LABEL is great, but if I try to use [[@LINE]] syntax to
refer to a line number, I get this:

  // CHECK-LABEL: text-diagnostics.c:[[@LINE-2]]:6: warning: Dereference of
null pointer (loaded from variable 'q')

  error: found 'CHECK-LABEL:' with variable definition or use'

Although [[@LINE]] uses variable syntax, it's statically resolvable to an
actual number, so I think this shouldn't be a problem.

Also there's a stray single quote there. Dunno what's up with that.

-- 
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/20130816/50e0452d/attachment.html>


More information about the llvm-bugs mailing list