Files
clang-p2996/lldb/test/Shell/Expr/TestAnonNamespaceParamFunc.cpp
Vladislav Dzhidzhoev 20c4e95b9c [lldb][test] Fix remote Shell tests failures on Windows host (#115716)
Since the remote Shell test execution feature was added, these tests
should now be disabled on Windows target instead of Windows host.

It should fix failures on
https://lab.llvm.org/staging/#/builders/197/builds/76.
2024-11-12 18:03:24 +01:00

25 lines
528 B
C++

// 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);
}