[Lldb-commits] [PATCH] D104437: Add test for functions with extended characters.

Neal via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 16 20:17:47 PDT 2021


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;
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104437.352610.patch
Type: text/x-patch
Size: 814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210617/2689c6ef/attachment.bin>


More information about the lldb-commits mailing list