aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Expr/TestExprLanguageNote_NoDebug.cpp
blob: 61d36867d001c962dfb6f047a181b70c3189d218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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;
}