Check in a test case for rdar://problem/8668740:

'frame variable' output for namespace variables look wrong

llvm-svn: 119172
This commit is contained in:
Johnny Chen 2010-11-15 19:10:53 +00:00
parent 8ed80e6360
commit 13e64a7411
1 changed files with 12 additions and 0 deletions

View File

@ -54,6 +54,18 @@ class NamespaceTestCase(TestBase):
substrs = ['state is stopped',
'stop reason = breakpoint'])
# rdar://problem/8668740
# 'frame variable' output for namespace variables look wrong
# (lldb) frame variable
# (int) a = 12
# (A::B::uint_t) anon_uint = 0
# (A::B::uint_t) a_uint = 1
# (A::B::uint_t) b_uint = 2
# (A::B::uint_t) y_uint = 3
# (lldb)
self.expect('frame variable', VARIABLES_DISPLAYED_CORRECTLY,
substrs = [''])
# 'frame variable' with basename 'i' should work.
self.expect("frame variable -c -G i",
startstr = "main.cpp:%d: (int) (anonymous namespace)::i = 3" % self.line_var_i)