(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
diagnostic/
function-color1.C
// 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 }