brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · e7da308 Raw
89 lines · plain
1# RUN: split-file %s %t2# RUN: %clangxx_host -g %t/main.cpp -o %t.out3#4# RUN: %lldb -x -b -o "settings set interpreter.stop-command-source-on-error false" \5# RUN:       -s %t/no-target.input 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TARGET6#7# RUN: %lldb %t.out -x -b -o "settings set interpreter.stop-command-source-on-error false" \8# RUN:       -s %t/with-target.input 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET9 10#--- main.cpp11 12int main() {13  int x = 10;14  return x;15}16 17#--- with-target.input18 19expr blah20 21# CHECK-TARGET: (lldb) expr22# CHECK-TARGET: note: Falling back to default language. Ran expression as 'Objective C++'.23 24b 425run26 27expr blah28 29# CHECK-TARGET: (lldb) expr30# CHECK-TARGET: note: Ran expression as '{{(ISO )?}}C++{{.*}}'31 32expr -l objc -- blah33 34# CHECK-TARGET: (lldb) expr35# CHECK-TARGET: note: Expression evaluation in pure Objective-C not supported. Ran expression as 'Objective C++'.36 37expr -l c -- blah38 39# CHECK-TARGET: (lldb) expr40# CHECK-TARGET: note: Expression evaluation in pure C not supported. Ran expression as 'ISO C++'.41 42expr -l c++14 -- blah43 44# CHECK-TARGET: (lldb) expr45# CHECK-TARGET: note: Ran expression as 'C++14'46 47expr -l c++20 -- blah48 49# CHECK-TARGET: (lldb) expr50# CHECK-TARGET: note: Ran expression as 'C++20'51 52expr -l objective-c++ -- blah53 54# CHECK-TARGET: (lldb) expr55# CHECK-TARGET: note: Ran expression as 'Objective C++'56 57# D uses TypeSystemClang but running expressions in it isn't supported. Test that we warn about this.58expr -l D -- blah59 60# CHECK-TARGET: (lldb) expr61# CHECK-TARGET: note: Expression evaluation in D not supported. Falling back to default language. Ran expression as 'Objective C++'.62 63expr -l c++17 -- x = 564 65# CHECK-TARGET:     (lldb) expr66# CHECK-TARGET-NOT: note:67 68expr x = 569 70# CHECK-TARGET:     (lldb) expr71# CHECK-TARGET-NOT: note:72 73#--- no-target.input74 75expr blah76 77# CHECK-NO-TARGET:     (lldb) expr78# CHECK-NO-TARGET:     note: Falling back to default language. Ran expression as 'Objective C++'.79 80expr -l c++ -- 1 + 181 82# CHECK-NO-TARGET:     (lldb) expr83# CHECK-NO-TARGET-NOT: note:84 85expr 1 + 186 87# CHECK-NO-TARGET:     (lldb) expr88# CHECK-NO-TARGET-NOT: note:89