xref: /llvm-project/lldb/test/Shell/Expr/TestStringLiteralExpr.test (revision 132d711554cbb3db0b0efd1e88d2acb9278b6be9)
1# UNSUPPORTED: system-windows
2# RUN: echo "int main() { return 0; }" | %clang_host -x c -o %t -
3# RUN: %lldb -s %s %t | FileCheck %s
4
5# Make sure that lldb doesn't crash when evaluating expressions with string literals
6b main
7run
8expr "hello there"
9expr printf("hello there")
10
11# CHECK: (const char[12]) $0 = "hello there"
12# CHECK: (int) $1 = 11
13