/* { dg-do compile { target c++17 } } */ /* { dg-options "-Og -w" } */ struct { template T *operator()(T); } hb_addressof; template static int _hb_cmp_method(Ts...) { return 0; } template inline bool hb_bsearch_impl(K key, V, int compar(void *, void *)) { V p; int __trans_tmp_2 = *hb_addressof(key) = compar(&__trans_tmp_2, p); return false; } struct hb_array_t { int arrayZ; }; struct hb_sorted_array_t : hb_array_t { void bsearch() { hb_bsearch_impl(bsearch_impl_x, &arrayZ, _hb_cmp_method); } int bsearch_impl_x; }; template struct hb_lazy_loader_t { Returned *operator->(); }; namespace OT { struct COLR; } struct hb_ot_face_t { hb_lazy_loader_t COLR; }; struct { hb_ot_face_t table; } hb_ot_color_glyph_get_layers_face; namespace OT { struct IntType { typedef int wide_type; operator wide_type(); }; struct UnsizedArrayOf; struct OffsetTo { template friend UnsizedArrayOf operator+(Base, OffsetTo); }; template using LOffsetTo = OffsetTo; template using LNNOffsetTo = LOffsetTo; struct UnsizedArrayOf { void as_array(int); }; struct SortedUnsizedArrayOf { hb_sorted_array_t __trans_tmp_4; void bsearch() { __trans_tmp_4.bsearch(); } }; struct COLR { SortedUnsizedArrayOf __trans_tmp_3; int get_glyph_layers() { __trans_tmp_3.bsearch(); int __trans_tmp_3 = numLayers; (this + layersZ).as_array(__trans_tmp_3); } LNNOffsetTo layersZ; IntType numLayers; }; } // namespace OT void hb_ot_color_glyph_get_layers() { hb_ot_color_glyph_get_layers_face.table.COLR->get_glyph_layers(); }