We fall back to `Objective-C++` when running C++ expressions in frames that don't have debug-info. But we were missing a fallback note for this situation. We would now print following note on expression error: ``` note: Possibly stopped inside system library, so speculatively enabled Objective-C. Ran expression as 'Objective C++'. ```
20 lines
533 B
C++
20 lines
533 B
C++
// REQUIRES: system-darwin
|
|
//
|
|
// Tests the language fall back diagnostic for when we fall back to
|
|
// Objective-C++ when stopped in frames with no debug-info.
|
|
//
|
|
// RUN: %clangxx_host %s -o %t.out
|
|
//
|
|
// RUN: %lldb %t.out \
|
|
// RUN: -o "b main" \
|
|
// RUN: -o run \
|
|
// RUN: -o "expr --language c++ -- blah" -o quit 2>&1 | FileCheck %s
|
|
|
|
// CHECK: (lldb) expr
|
|
// CHECK: note: Possibly stopped inside system library, so speculatively enabled Objective-C. Ran expression as 'Objective C++'.
|
|
|
|
int main() {
|
|
int x = 10;
|
|
return x;
|
|
}
|