1*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -fsyntax-only %s 2*f4a2713aSLionel Sambuc namespace PR6375 { 3*f4a2713aSLionel Sambuc template<class Conv> class rasterizer_sl_clip Conv::xi(x2), Conv::yi(y2)); 4*f4a2713aSLionel Sambuc namespace agg 5*f4a2713aSLionel Sambuc { 6*f4a2713aSLionel Sambuc template<class Clip=rasterizer_sl_clip_int> class rasterizer_scanline_aa 7*f4a2713aSLionel Sambuc { sweep_scanline(Scanline & sl)8*f4a2713aSLionel Sambuc template<class Scanline> bool sweep_scanline(Scanline& sl) 9*f4a2713aSLionel Sambuc { 10*f4a2713aSLionel Sambuc unsigned num_cells = m_outline.scanline_num_cells(m_scan_y); 11*f4a2713aSLionel Sambuc while(num_cells) { } 12*f4a2713aSLionel Sambuc } 13*f4a2713aSLionel Sambuc } 14*f4a2713aSLionel Sambuc class scanline_u8 {} 15*f4a2713aSLionel Sambuc template<class PixelFormat> class renderer_base { } 16*f4a2713aSLionel Sambuc } 17*f4a2713aSLionel Sambuc template<class Rasterizer, class Scanline, class BaseRenderer, class ColorT> 18*f4a2713aSLionel Sambuc void render_scanlines_aa_solid(Rasterizer& ras, Scanline& sl, BaseRenderer& ren, const ColorT& color) 19*f4a2713aSLionel Sambuc { 20*f4a2713aSLionel Sambuc while(ras.sweep_scanline(sl)) 21*f4a2713aSLionel Sambuc { 22*f4a2713aSLionel Sambuc } 23*f4a2713aSLionel Sambuc }; 24*f4a2713aSLionel Sambuc namespace agg 25*f4a2713aSLionel Sambuc { 26*f4a2713aSLionel Sambuc struct rgba8 27*f4a2713aSLionel Sambuc { 28*f4a2713aSLionel Sambuc }; 29*f4a2713aSLionel Sambuc template<class Rasterizer, class Scanline, class Renderer, class Ctrl> 30*f4a2713aSLionel Sambuc void render_ctrl(Rasterizer& ras, Scanline& sl, Renderer& r, Ctrl& c) 31*f4a2713aSLionel Sambuc { 32*f4a2713aSLionel Sambuc unsigned i; 33*f4a2713aSLionel Sambuc render_scanlines_aa_solid(ras, sl, r, c.color(i)); 34*f4a2713aSLionel Sambuc } 35*f4a2713aSLionel Sambuc template<class ColorT> class rbox_ctrl : public rbox_ctrl_impl 36*f4a2713aSLionel Sambuc { 37*f4a2713aSLionel Sambuc const ColorT& color(unsigned i) const { return *m_colors[i]; } 38*f4a2713aSLionel Sambuc } 39*f4a2713aSLionel Sambuc class the_application : public agg::platform_support 40*f4a2713aSLionel Sambuc { 41*f4a2713aSLionel Sambuc agg::rbox_ctrl<agg::rgba8> m_polygons; 42*f4a2713aSLionel Sambuc virtual void on_init() 43*f4a2713aSLionel Sambuc { 44*f4a2713aSLionel Sambuc typedef agg::renderer_base<pixfmt_type> base_ren_type; 45*f4a2713aSLionel Sambuc base_ren_type ren_base(pf); 46*f4a2713aSLionel Sambuc agg::scanline_u8 sl; 47*f4a2713aSLionel Sambuc agg::rasterizer_scanline_aa<> ras; 48*f4a2713aSLionel Sambuc agg::render_ctrl(ras, sl, ren_base, m_polygons); 49*f4a2713aSLionel Sambuc } 50*f4a2713aSLionel Sambuc }; 51*f4a2713aSLionel Sambuc } 52*f4a2713aSLionel Sambuc } 53