Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/function-color1.C

raw
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 'f<int>(int)' is ambiguous
14 { dg-end-multiline-output "" } */
15 /* { dg-begin-multiline-output "" }
16 candidate 1: 'void f(short int) [with T = int]'
17 { dg-end-multiline-output "" } */
18 }
19
20 // Discard the remaining colorized output that confuses dejagnu.
21 // { dg-prune-output diagnostic/function-color1.C }