Skip to content

Commit eca3206

Browse files
committed
[lldb] Fix command-expr-diagnostics.test for Windows (#112109)
This adds a minor change to command-expr-diagnostics.test to make it pass on windows. Clang produces PDB on windows by default which was ignoring main symbol due to optimization. The problem is fixed by adding -gdwarf to commandline, making sure dwarf debug info gets generated on both Windows and Linux.
1 parent ed0fd13 commit eca3206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/Shell/Commands/command-expr-diagnostics.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# CHECK3: {{^ error: use of undeclared identifier 'a'}}
1818

1919
# RUN: echo "int main(){return 0;}">%t.c
20-
# RUN: %clang_host %t.c -o %t.exe
20+
# RUN: %clang_host %t.c -gdwarf -o %t.exe
2121
# RUN: echo quit | %lldb %t.exe -o "b main" -o r -o \
2222
# RUN: "expr --top-level -- template<typename T> T FOO(T x) { return x/2;}" -o \
2323
# RUN: "expression -- FOO(\"\")" 2>&1 | FileCheck %s --check-prefix=CHECK4

0 commit comments

Comments
 (0)