| 1 |
/* Verify that -fno-diagnostics-show-highlight-colors works. */ |
| 2 |
/* { dg-options "-fdiagnostics-show-caret -fdiagnostics-color=always -fno-diagnostics-show-highlight-colors" } */ |
| 3 |
|
| 4 |
struct s {}; |
| 5 |
struct t {}; |
| 6 |
typedef struct s S; |
| 7 |
typedef struct t T; |
| 8 |
|
| 9 |
extern S callee_4a (void); |
| 10 |
extern T callee_4b (void); |
| 11 |
|
| 12 |
int test_4 (void) |
| 13 |
{ |
| 14 |
return callee_4a () + callee_4b (); |
| 15 |
|
| 16 |
/* { dg-begin-multiline-output "" } |
| 17 |
[m[K [01;31m[Kerror: [m[Kinvalid operands to binary + (have '[01m[KS[m[K' {aka [m[K'[01m[Kstruct s[m[K'} and '[01m[KT[m[K' {aka [m[K'[01m[Kstruct t[m[K'}) |
| 18 |
{ dg-end-multiline-output "" } */ |
| 19 |
|
| 20 |
/* { dg-begin-multiline-output "" } |
| 21 |
return [32m[Kcallee_4a ()[m[K [01;31m[K+[m[K [34m[Kcallee_4b ()[m[K; |
| 22 |
[32m[K~~~~~~~~~~~~[m[K [01;31m[K^[m[K [34m[K~~~~~~~~~~~~[m[K |
| 23 |
[32m[K|[m[K [34m[K|[m[K |
| 24 |
[32m[K|[m[K [34m[KT {aka struct t}[m[K |
| 25 |
[32m[KS {aka struct s}[m[K |
| 26 |
{ dg-end-multiline-output "" } */ |
| 27 |
|
| 28 |
/* { dg-prune-output "In function" } */ |
| 29 |
/* { dg-prune-output "bad-binary-ops-no-highlight-colors.c" } */ |
| 30 |
} |