blob: eb99a3ed8dac2c1735270f9a3ad7c1f14a7dba67 [file] [log] [blame]
/* Verify colorization of the output of -fdiagnostics-show-template-tree,
and within the %H and %I format codes.
Doing so requires a plugin; see the comments in the plugin for the
rationale. */
// { dg-options "-fdiagnostics-show-template-tree -fdiagnostics-color=always" }
template<typename> struct vector {};
template<typename, typename> struct map {};
void fn_1(vector<int>);
void fn_2(map<int, int>);
void test ()
{
fn_1 (vector<double> ());
/* { dg-begin-multiline-output "" }
could not convert 'vector<double>()' from 'vector<double>' to 'vector<int>'
vector<
[double != int]>
{ dg-end-multiline-output "" } */
fn_2 (map<int, double>());
/* { dg-begin-multiline-output "" }
could not convert 'map<int, double>()' from 'map<[...],double>' to 'map<[...],int>'
map<
[...],
[double != int]>
{ dg-end-multiline-output "" } */
}