================ @@ -69,17 +69,19 @@ def test_subscript(self): substrs=["expected 'r_square', got: <'.'"], ) - # Base should be a "pointer to T" and index should be of an integral type. - self.expect( - "frame var 'idx_1[0]'", - error=True, - substrs=["subscripted value is not an array or pointer"], - ) + + # Test accessing bits in scalar types. + self.expect_var_path("idx_1[0]", value="1") + self.expect_var_path("idx_1[1]", value="0") + + # Bit acess not valid for a reference. ---------------- kuilpd wrote:
```suggestion # Bit access not valid for a reference. ``` https://github.com/llvm/llvm-project/pull/151605 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits