@Test
	public void testOffcutCharArrayDynamicLabelReference() throws Exception {

		createCharArray(addr("1001234")); // convert to string char array

		// Note: for dynamic labels, we don't render the string based upon its offcut index, but
		//       rather we just show the entire string.  Alternatively, if there is a label there,
		//       we show that.  The label will show the string at its offcut location.
		Address operandAddr = addr("01001000");
		assertOperandText(operandAddr, "s_defgh_01001234+3");

		//
		// change the option and make sure the rendering updates
		//
		setBooleanOption(OptionsBasedDataTypeDisplayOptions.DISPLAY_ABBREVIATED_DEFAULT_LABELS,
			true);
		assertOperandText(operandAddr, "STR_01001234+3");
	}
Tests the option to not show strings in default labels.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/util/viewer/field/OperandFieldFactoryTest.java