1"""
2Test Expression Parser regression test to ensure that we handle enums
3correctly, in this case specifically std::vector of enums.
4"""
5
6
7import lldb
8from lldbsuite.test.decorators import *
9from lldbsuite.test.lldbtest import *
10from lldbsuite.test import lldbutil
11
12class TestVectorOfEnums(TestBase):
13
14  @add_test_categories(["libc++"])
15  def test_vector_of_enums(self):
16    self.build()
17
18    lldbutil.run_to_source_breakpoint(self, '// break here',
19            lldb.SBFileSpec("main.cpp", False))
20
21    self.expect("expr v", substrs=[
22         'size=3',
23         '[0] = a',
24         '[1] = b',
25         '[2] = c',
26         '}'
27        ])
28