summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module
diff options
context:
space:
mode:
authorRaphael Isemann <risemann@apple.com>2019-10-23 08:32:53 -0700
committerRaphael Isemann <risemann@apple.com>2019-10-23 09:26:57 -0700
commitd01fd2f35a02cb53a5d9d1a5342b5085c5dce66c (patch)
tree9841885c99928cb6274a7c8d35a3db0eb53b1665 /lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module
parentb689cc640f3f13208304b17caffd04ca71960335 (diff)
downloadbcm5719-llvm-d01fd2f35a02cb53a5d9d1a5342b5085c5dce66c.tar.gz
bcm5719-llvm-d01fd2f35a02cb53a5d9d1a5342b5085c5dce66c.zip
[lldb] Add nodebug attribute to import-std-module/sysroot test
Summary: So far we rely on the default argument and the fact that we don't call this inline function in our actual `main.cpp` to make sure that this function can only be called if LLDB loads this header as a C++ module. This patch just adds the nodebug attribute as yet another measure to make sure LLDB can't call this function without the standard module loaded. Note that the test is already requiring clang for the sysroot setup, so its fine that this is a Clang specific attribute. Reviewers: friss, labath Subscribers: JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D68861
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module/sysroot/root/usr/include/c++/v1/algorithm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module/sysroot/root/usr/include/c++/v1/algorithm b/lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module/sysroot/root/usr/include/c++/v1/algorithm
index 43f7becdbeb..a0cb2f15a19 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module/sysroot/root/usr/include/c++/v1/algorithm
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/import-std-module/sysroot/root/usr/include/c++/v1/algorithm
@@ -4,6 +4,7 @@ namespace std {
// Makes sure we get a support file for this header.
struct vector { int i; };
+ __attribute__((__nodebug__))
inline int myabs(int i = -123) {
double nil;
return i < 0 ? -i : i;
OpenPOWER on IntegriCloud