@Test
	public void testIndirect() throws IOException {
		// @formatter:off
		BinaryReader br = br(
			(byte)DW_FORM_data1.getId(),
			(byte) 55,
			(byte)DW_FORM_ref4.getId(),
			(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0xaa
			);
		// @formatter:on

		DWARFAttributeValue result = read(br, DW_AT_byte_size, DW_FORM_indirect);
		assertEquals("should be 55", 55, ((DWARFNumericAttribute) result).getValue());

		result = read(br, DW_AT_byte_size, DW_FORM_indirect);
		assertEquals("should be aa + cuOffset", 0xaa + cu.getStartOffset(),
			((DWARFNumericAttribute) result).getValue());
	}
Test reading binary representations of DWARF attributes from raw bytes.
Ghidra/Features/Base/src/test/java/ghidra/app/util/bin/format/dwarf/attribs/DWARFAttributeFactoryTest.java