blob: 32d9e966bdbd8ce1582f3c2fa41c73a32fd01c12 [file] [log] [blame]
// Verify colorization of printing of function declarations.
// Use dg-*-multiline-output to avoid regexp interpretation.
// { dg-options "-fdiagnostics-color=always" }
template <class T> void f(short t);
template <class T> void f(long t);
int main()
{
f<int>(42);
/* { dg-begin-multiline-output "" }
call of overloaded 'f<int>(int)' is ambiguous
{ dg-end-multiline-output "" } */
/* { dg-begin-multiline-output "" }
candidate: 'void f(short int) [with T = int]'
{ dg-end-multiline-output "" } */
}
// Discard the remaining colorized output that confuses dejagnu.
// { dg-prune-output diagnostic/function-color1.C }