ljmf00 added a comment. In D112564#3089399 <https://reviews.llvm.org/D112564#3089399>, @labath wrote:
> What exactly do you need the test to do? Is printing a global variable > (`char8_t_ish foo[] = "my string"`) sufficient? > If so, you can take a look at the tests in `test/Shell/SymbolFile/DWARF` for > inspiration. There are .s and .ll tests there. > The pattern would roughly be: > > # RUN: llvm-mc (or llc) -o %t %s > # RUN: %lldb %t -o "target variable foo" | FileCheck %s > > # CHECK: (char8_t_ish[]) foo = "my string" > > your code here Yeah, it is a bit more complicated than that although, due to https://bugs.llvm.org/show_bug.cgi?id=45856 . I'm going to take a look at those tests and write some. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112564/new/ https://reviews.llvm.org/D112564 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits