// Verify colorization of printing of function declarations. // Use dg-*-multiline-output to avoid regexp interpretation. // { dg-options "-fdiagnostics-color=always" } template void f(short t); template void f(long t); int main() { f(42); /* { dg-begin-multiline-output "" } call of overloaded 'f(int)' is ambiguous { dg-end-multiline-output "" } */ /* { dg-begin-multiline-output "" } candidate 1: '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 }