[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:18:45 PDT 2021
nealsid updated this revision to Diff 352612.
nealsid added a comment.
Herald added a subscriber: JDevlieghere.
Add newline.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104437/new/
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
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.352612.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210617/9b283340/attachment.bin>
More information about the lldb-commits
mailing list