blob: 725b2d637637f2b469e647de468c85dd4da5d080 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Tests that we can evaluate functions that Clang
// classifies as having clang::Linkage::UniqueExternal
// linkage. In this case, a function whose argument
// is not legally usable outside this TU.
// XFAIL: target-windows
// RUN: %build %s -o %t
// RUN: %lldb %t -o run -o "expression func(a)" -o exit | FileCheck %s
// CHECK: expression func(a)
// CHECK: (int) $0 = 15
namespace {
struct InAnon {};
} // namespace
int func(InAnon a) { return 15; }
int main() {
InAnon a;
__builtin_debugtrap();
return func(a);
}
|