1 /* End-to-end test of -fdiagnostics-show-template-tree and -felide-type
3 In particular, ensure that we don't print the default arguments e.g.
5 from 'vector<double,allocator<double>>' to 'vector<float,allocator<float>>'
6 (albeit with differences nicely color-coded), we want to print:
7 from 'vector<double>' to 'vector<float>'
8 (again, with the "double" and "float" highlighted, though we can't test
9 for that in this case). */
11 // { dg-options "-fdiagnostics-show-template-tree" }
12 // { dg-additional-options "-Wno-return-type" }
20 void takes_vf (vector<float> v);
21 void takes_mivf (map<int, vector<float> > v);
25 takes_vf (vector<double> ()); // { dg-error "could not convert '.*' from 'vector<double>' to 'vector<float>'" }
26 /* { dg-begin-multiline-output "" }
29 { dg-end-multiline-output "" } */
31 takes_mivf (map<int, vector<double> > ()); // { dg-error "could not convert '.*' from 'map<.\\.\\.\\..,vector<double>>' to 'map<.\\.\\.\\..,vector<float>>'" }
32 /* { dg-begin-multiline-output "" }
37 { dg-end-multiline-output "" } */