Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / sbvalue_unsigned_enum_bitfield_value / main.cpp
blob9859754d4973f1d324877836037b72a09f06bbce
1 #include <stdint.h>
3 enum class EnumVals : uint16_t { VAL0 = 0 };
5 struct Foo {
6 EnumVals b : 4;
7 };
9 int main(int argc, char const *argv[], char const *envp[]) {
10 Foo f{.b = static_cast<EnumVals>(8)};
11 return 0; //% b = self.frame().FindVariable("f").GetChildMemberWithName("b")
12 //% val = b.GetValueAsUnsigned()
13 //% self.assertEqual(val, 8, "Bit-field not correctly extracted")