brintos

brintos / llvm-project-archived public Read only

0
0
Text · 674 B · b49a380 Raw
27 lines · plain
1# Test that we can successfully ASTImport clang::LambdaExpr nodes.2# Currently this is not supported in MinimalImport mode (which LLDB3# uses always).4 5# RUN: split-file %s %t6# RUN: %clangxx_host -g -gdwarf %t/main.cpp -o %t.out7# RUN: %lldb -o "settings set interpreter.stop-command-source-on-error false" \8# RUN:       -x -b -s %t/commands.input %t.out 2>&1 \9# RUN:       | FileCheck %s10 11#--- main.cpp12 13int main() {14  __builtin_debugtrap();15}16 17#--- commands.input18 19run20expression --top-level -- void method(int x) { [x=x] { ; }; }21target dump typesystem22 23# CHECK:      expression24# CHECK:      target dump typesystem25# CHECK-NOT:  FunctionDecl26# CHECK-NOT:  LambdaExpr27