@Test
public void testUIntConstantExprIndex() throws Exception {

  final String shader = "#version 300 es\n"
      + "void main() { vec3 stuff[16];"
      + "  uint x = 19u;"
      + "  vec3 f = stuff[x];"
      + "}";
  final String expected = "#version 300 es\n"
      + "void main() { vec3 stuff[16];"
      + "  uint x = 19u;"
      + "  vec3 f = stuff[" + Constants.GLF_MAKE_IN_BOUNDS_UINT + "(x, 16u)];"
      + "}";
  final TranslationUnit tu = ParseHelper.parse(shader);
  MakeArrayAccessesInBounds.makeInBounds(tu);
  assertEquals(PrettyPrinterVisitor.prettyPrintAsString(ParseHelper.parse(expected)),
      PrettyPrinterVisitor.prettyPrintAsString(tu));
}