1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/FileCheck/regex-brackets.txt
Eli Bendersky 99a08c0b07 Fix a bug in FileCheck that wouldn't let define variables as follows:
; CHECK: [[VAR:[a-z]]]

The problem was that to find the end of the regex var definition, it was
simplistically looking for the next ]] and finding the incorrect one. A
better approach is to count nesting of brackets (taking escaping into
account). This way the brackets that are part of the regex can be discovered
and skipped properly, and the ]] ending is detected in the right place.

llvm-svn: 169109
2012-12-02 16:02:41 +00:00

8 lines
140 B
Plaintext

// RUN: FileCheck -input-file %s %s
op r1
op r2, [x r1]
; CHECK: op [[REG:r[0-9]]]
; CHECK: op [[REG2:r[0-9]]], [x [[REG]]]