summaryrefslogtreecommitdiffstats
path: root/lldb/test/namespace/TestNamespace.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/namespace/TestNamespace.py')
-rw-r--r--lldb/test/namespace/TestNamespace.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/test/namespace/TestNamespace.py b/lldb/test/namespace/TestNamespace.py
index 342dd11f96c..df1dc7f4f9a 100644
--- a/lldb/test/namespace/TestNamespace.py
+++ b/lldb/test/namespace/TestNamespace.py
@@ -71,12 +71,21 @@ class NamespaceTestCase(TestBase):
self.expect("frame variable 'A::B::j", VARIABLES_DISPLAYED_CORRECTLY,
startstr = '(int) A::B::j = 4')
+ # So should the anonymous namespace case.
+ self.expect("frame variable '(anonymous namespace)::i", VARIABLES_DISPLAYED_CORRECTLY,
+ startstr = '(int) (anonymous namespace)::i = 3')
+
# rdar://problem/8660275
# test/namespace: 'expression -- i+j' not working
self.expect("expression -- i + j",
startstr = "(int) $0 = 7")
# (int) $0 = 7
+ self.runCmd("expression -- '(anonymous namespace)::i'")
+
+ self.runCmd("expression -- 'A::B::j'")
+
+
if __name__ == '__main__':
import atexit
lldb.SBDebugger.Initialize()
OpenPOWER on IntegriCloud