Files
llvm-project/lldb/test/Shell/Commands/command-dil-diagnostics.test
Ilia Kuklin d8d2e3358c [lldb] Make command-dil-diagnostics.test UNSUPPORTED on Windows (#190341)
The test from #187680 passes on some Windows buildbots, but fails on
others.
2026-04-03 18:27:57 +05:00

23 lines
859 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## Check DIL error diagnostics output.
# UNSUPPORTED: target-windows
# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t
# RUN: %lldb %t -o "command source -e 0 %s" -o exit 2>&1 | FileCheck %s --strict-whitespace
settings set target.experimental.use-DIL true
b main
run
## Check console diagnostincs pointing to an error in user input.
frame var a+b
# CHECK: {{^ (\^|˄)}}
# CHECK-NEXT: {{^ (╰─ )?}}error: use of undeclared identifier 'b'
## Check diagnostics when called from API.
script lldb.frame.GetValueForVariablePath("++foo")
# CHECK: error: <user expression>:1:3: use of undeclared identifier 'foo'
# CHECK-NEXT: {{^ }}1 | ++foo
# CHECK-NEXT: {{^ }} | ^~~
## Check that a result that fails to retrieve data is displaying an error.
frame var *((int*)0)
# CHECK: (int) *((int*)0) = <parent is NULL>