Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaTemplate / instantiate-invalid.cpp
blobb8a59015c09f5c3cef45decf0c2576384c5e1935
1 // RUN: not %clang_cc1 -fsyntax-only %s
2 namespace PR6375 {
3 template<class Conv> class rasterizer_sl_clip Conv::xi(x2), Conv::yi(y2));
4 namespace agg
6 template<class Clip=rasterizer_sl_clip_int> class rasterizer_scanline_aa
8 template<class Scanline> bool sweep_scanline(Scanline& sl)
10 unsigned num_cells = m_outline.scanline_num_cells(m_scan_y);
11 while(num_cells) { }
14 class scanline_u8 {}
15 template<class PixelFormat> class renderer_base { }
17 template<class Rasterizer, class Scanline, class BaseRenderer, class ColorT>
18 void render_scanlines_aa_solid(Rasterizer& ras, Scanline& sl, BaseRenderer& ren, const ColorT& color)
20 while(ras.sweep_scanline(sl))
24 namespace agg
26 struct rgba8
29 template<class Rasterizer, class Scanline, class Renderer, class Ctrl>
30 void render_ctrl(Rasterizer& ras, Scanline& sl, Renderer& r, Ctrl& c)
32 unsigned i;
33 render_scanlines_aa_solid(ras, sl, r, c.color(i));
35 template<class ColorT> class rbox_ctrl : public rbox_ctrl_impl
37 const ColorT& color(unsigned i) const { return *m_colors[i]; }
39 class the_application : public agg::platform_support
41 agg::rbox_ctrl<agg::rgba8> m_polygons;
42 virtual void on_init()
44 typedef agg::renderer_base<pixfmt_type> base_ren_type;
45 base_ren_type ren_base(pf);
46 agg::scanline_u8 sl;
47 agg::rasterizer_scanline_aa<> ras;
48 agg::render_ctrl(ras, sl, ren_base, m_polygons);