| 1 |
// Verify colorization of printing of function declarations. |
| 2 |
// Use dg-*-multiline-output to avoid regexp interpretation. |
| 3 |
|
| 4 |
// { dg-options "-fdiagnostics-color=always" } |
| 5 |
|
| 6 |
template <class T> void f(short t); |
| 7 |
template <class T> void f(long t); |
| 8 |
|
| 9 |
int main() |
| 10 |
{ |
| 11 |
f<int>(42); |
| 12 |
/* { dg-begin-multiline-output "" } |
| 13 |
call of overloaded '[01m[Kf<int>(int)[m[K' is ambiguous |
| 14 |
{ dg-end-multiline-output "" } */ |
| 15 |
/* { dg-begin-multiline-output "" } |
| 16 |
candidate 1: '[01m[Kvoid[01;32m[K f[m[K(short int) [35m[K[with T = int][m[K[m[K' |
| 17 |
{ dg-end-multiline-output "" } */ |
| 18 |
} |
| 19 |
|
| 20 |
// Discard the remaining colorized output that confuses dejagnu. |
| 21 |
// { dg-prune-output diagnostic/function-color1.C } |