[Lldb-commits] [lldb] r119168 - /lldb/trunk/test/namespace/TestNamespace.py
Johnny Chen
johnny.chen at apple.com
Mon Nov 15 10:40:06 PST 2010
Author: johnny
Date: Mon Nov 15 12:40:06 2010
New Revision: 119168
URL: http://llvm.org/viewvc/llvm-project?rev=119168&view=rev
Log:
Also add a test for "frame variable '(anonymous namespace)::i'",
plus expression command using fully qualified names.
Modified:
lldb/trunk/test/namespace/TestNamespace.py
Modified: lldb/trunk/test/namespace/TestNamespace.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/namespace/TestNamespace.py?rev=119168&r1=119167&r2=119168&view=diff
==============================================================================
--- lldb/trunk/test/namespace/TestNamespace.py (original)
+++ lldb/trunk/test/namespace/TestNamespace.py Mon Nov 15 12:40:06 2010
@@ -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()
More information about the lldb-commits
mailing list