summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-11-15 18:40:06 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-11-15 18:40:06 +0000
commit913af510c7059276205049166e7bf69175573da1 (patch)
tree6d8eb25eece202f0ed0086f7a1f5b3ecc92f5006
parent5cf10ea1d10154de541ac7a13119817e003ee362 (diff)
downloadbcm5719-llvm-913af510c7059276205049166e7bf69175573da1.tar.gz
bcm5719-llvm-913af510c7059276205049166e7bf69175573da1.zip
Also add a test for "frame variable '(anonymous namespace)::i'",
plus expression command using fully qualified names. llvm-svn: 119168
-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