This matches GNU binutils.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM.
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 | This is slightly surprising now, though probably harmless. |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 | I think FileCheck also matches EOF for -EMPTY? Or possibly it matches the \n after func. |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 | Yes, it'll be something like the matching EOF line (after all, there is no output at that point). It's not really worth worrying about though. I'm not sure if there's a clear fix. Maybe a CHECK-NOT: {{.}} would make more sense? |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 | That seems to do the same (since the last match ends before the newline. I can't find a way to make it fail if there is an extra newline (other than e.g. piping to hexdump). This also works fine if the output ends in \n\n: // GNU-NEXT: XYZ 0x00000000 func{{$}} // GNU-NOT: {{.}} |
llvm/test/tools/llvm-readobj/ELF/note-generic.s | ||
---|---|---|
22 | Fair enough. Something to look at another time, I guess. I'd just delete this line and call it good then, but happy for you to do something else too. |
This is slightly surprising now, though probably harmless.