[LLDB] Add multi value test for const static enum
authorDavid Spickett <david.spickett@linaro.org>
Tue, 9 Aug 2022 08:38:17 +0000 (08:38 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 10 Aug 2022 08:50:12 +0000 (08:50 +0000)
commit5e538c669c76d26642f64cd03a6c09e5eee436b0
treecbdf872014f4df585cd9ad27ea9fd70aba0907e5
parent32017d5efec598478a75c2c0027f64b71bd2ea4e
[LLDB] Add multi value test for const static enum

1438639a2f7eb9e9cba01454d3a9b1b16d179c9a removed a test
that was using undefined behaviour setting a non-typed enum
to a value outside its known range.

That test also checked if we formatted the value properly
when it could contain >1 valid enum value.

I don't think there's anything special about how we format
typed vs non-typed enums so I'm adding a test for ScopedEnum
that will expect to see 2 enum values plus extra.

Reviewed By: labath, Michael137, shafik

Differential Revision: https://reviews.llvm.org/D131472
lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
lldb/test/API/lang/cpp/const_static_integral_member/main.cpp