StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / SemaTemplate / deduction-crash.cpp
blob8f4b7281818df17c6db10f526505f25dbfb66df8
1 // RUN: %clang_cc1 -fsyntax-only %s 2>&1| FileCheck %s
3 // PR7511
5 // Note that the error count below doesn't matter. We just want to
6 // make sure that the parser doesn't crash.
7 // CHECK: 15 errors
8 template<a>
9 struct int_;
11 template<a>
12 template<int,typename T1,typename>
13 struct ac
15 typedef T1 ae
18 template<class>struct aaa
20 typedef ac<1,int,int>::ae ae
23 template<class>
24 struct state_machine
26 typedef aaa<int>::ae aaa;
27 int start()
29 ant(0);
32 template<class>
33 struct region_processing_helper
35 template<class,int=0>
36 struct In;
38 template<int my>
39 struct In<a::int_<aaa::a>,my>;
41 template<class Event>
42 int process(Event)
44 In<a::int_<0> > a;
47 template<class Event>
48 int ant(Event)
50 region_processing_helper<int>* helper;
51 helper->process(0)
55 int a()
57 state_machine<int> p;
58 p.ant(0);