diff --git a/lldb/test/Shell/Breakpoint/Inputs/unicode-function-name.c b/lldb/test/Shell/Breakpoint/Inputs/unicode-function-name.c new file mode 100644 --- /dev/null +++ b/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; +} diff --git a/lldb/test/Shell/Breakpoint/unicode-function-name.test b/lldb/test/Shell/Breakpoint/unicode-function-name.test new file mode 100644 --- /dev/null +++ b/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