1 /* Verify that colorization affects both text within diagnostic messages
2 and underlined ranges of quoted source, and that the types we use
4 Also implicitly verify that -fdiagnostics-show-highlight-colors is
7 /* { dg-options "-fdiagnostics-show-caret -fdiagnostics-color=always" } */
14 extern S
callee_4a (void);
15 extern T
callee_4b (void);
19 return callee_4a () + callee_4b ();
21 /* { dg-begin-multiline-output "" }
22 \e[m\e[K \e[01;31m\e[Kerror: \e[m\e[Kinvalid operands to binary + (have '\e[01m\e[K\e[01;32m\e[KS\e[m\e[K' {aka \e[m\e[K'\e[01m\e[K\e[01;32m\e[Kstruct s\e[m\e[K'}\e[m\e[K and '\e[01m\e[K\e[01;34m\e[KT\e[m\e[K' {aka \e[m\e[K'\e[01m\e[K\e[01;34m\e[Kstruct t\e[m\e[K'}\e[m\e[K)
23 { dg-end-multiline-output "" } */
25 /* { dg-begin-multiline-output "" }
26 return \e[01;32m\e[Kc\e[m\e[K\e[01;32m\e[Ka\e[m\e[K\e[01;32m\e[Kl\e[m\e[K\e[01;32m\e[Kl\e[m\e[K\e[01;32m\e[Ke\e[m\e[K\e[01;32m\e[Ke\e[m\e[K\e[01;32m\e[K_\e[m\e[K\e[01;32m\e[K4\e[m\e[K\e[01;32m\e[Ka\e[m\e[K\e[01;32m\e[K \e[m\e[K\e[01;32m\e[K(\e[m\e[K\e[01;32m\e[K)\e[m\e[K \e[01;31m\e[K+\e[m\e[K \e[01;34m\e[Kc\e[m\e[K\e[01;34m\e[Ka\e[m\e[K\e[01;34m\e[Kl\e[m\e[K\e[01;34m\e[Kl\e[m\e[K\e[01;34m\e[Ke\e[m\e[K\e[01;34m\e[Ke\e[m\e[K\e[01;34m\e[K_\e[m\e[K\e[01;34m\e[K4\e[m\e[K\e[01;34m\e[Kb\e[m\e[K\e[01;34m\e[K \e[m\e[K\e[01;34m\e[K(\e[m\e[K\e[01;34m\e[K)\e[m\e[K;
27 \e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K\e[01;32m\e[K~\e[m\e[K \e[01;31m\e[K^\e[m\e[K \e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K\e[01;34m\e[K~\e[m\e[K
28 \e[01;32m\e[K|\e[m\e[K \e[01;34m\e[K|\e[m\e[K
29 \e[01;32m\e[K|\e[m\e[K \e[01;34m\e[KT {aka struct t}\e[m\e[K
30 \e[01;32m\e[KS {aka struct s}\e[m\e[K
31 { dg-end-multiline-output "" } */
33 /* { dg-prune-output "In function" } */
34 /* { dg-prune-output "bad-binary-ops-highlight-colors.c" } */