summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/cc2/regression-tests/pure2-template-parameter-lists.cpp2
blob: 08b10dcc770e9d5ad499d0ad8d9c85622c48bc4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12

f1: <T, U>           (t:T, u:U)   t+u;
f2: <T:type, U:type> (t:T, u:U)   t+u;
f3: <T:_, U:_>       ()           T+U;
f4: <T: i8, U: i16>  ()           T+U;

main: () = {
    std::cout << "f1: (f1(1,1))$\n";
    std::cout << "f2: (f2(2,2))$\n";
    std::cout << "f3: (f3<3,3>())$\n";
    std::cout << "f4: (f4<4,4>())$\n";
}