nealsid created this revision. nealsid added a reviewer: LLDB. nealsid requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits.
This small patch adds a test for functions & lldb commands with unicode characters in them. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D104437 Files: lldb/test/Shell/Breakpoint/Inputs/unicode-function-name.c lldb/test/Shell/Breakpoint/unicode-function-name.test Index: lldb/test/Shell/Breakpoint/unicode-function-name.test =================================================================== --- /dev/null +++ lldb/test/Shell/Breakpoint/unicode-function-name.test @@ -0,0 +1,11 @@ +# RUN: %build% %p/Inputs/unicode-function-name.c --nodefaultlib -o %t +# RUN: %lldb -b -s %s %t | FileCheck %s + +break set -n Δ +# CHECK: Breakpoint 1: + +run +# CHECK: Process {{[0-9]+}} stopped + +print ΔΔ +# CHECK: (int) $0 = 5 \ No newline at end of file Index: lldb/test/Shell/Breakpoint/Inputs/unicode-function-name.c =================================================================== --- /dev/null +++ lldb/test/Shell/Breakpoint/Inputs/unicode-function-name.c @@ -0,0 +1,6 @@ +int Δ(int ΔΔ) { return ΔΔ; } + +int main(int argc, char *argv[]) { + int x = Δ(5); + return 0; +}
Index: lldb/test/Shell/Breakpoint/unicode-function-name.test =================================================================== --- /dev/null +++ lldb/test/Shell/Breakpoint/unicode-function-name.test @@ -0,0 +1,11 @@ +# RUN: %build% %p/Inputs/unicode-function-name.c --nodefaultlib -o %t +# RUN: %lldb -b -s %s %t | FileCheck %s + +break set -n Î +# CHECK: Breakpoint 1: + +run +# CHECK: Process {{[0-9]+}} stopped + +print ÎÎ +# CHECK: (int) $0 = 5 \ No newline at end of file Index: lldb/test/Shell/Breakpoint/Inputs/unicode-function-name.c =================================================================== --- /dev/null +++ lldb/test/Shell/Breakpoint/Inputs/unicode-function-name.c @@ -0,0 +1,6 @@ +int Î(int ÎÎ) { return ÎÎ; } + +int main(int argc, char *argv[]) { + int x = Î(5); + return 0; +}
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits