Also add a test for "frame variable '(anonymous namespace)::i'",
plus expression command using fully qualified names.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@119168 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/namespace/TestNamespace.py b/test/namespace/TestNamespace.py
index 342dd11..df1dc7f 100644
--- a/test/namespace/TestNamespace.py
+++ b/test/namespace/TestNamespace.py
@@ -71,12 +71,21 @@
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()