blob: 9eb22cb81a535f2904eaa9a877601680554cf439 [file] [log] [blame]
/* Verify that -fno-diagnostics-show-highlight-colors works. */
/* { dg-options "-fdiagnostics-show-caret -fdiagnostics-color=always -fno-diagnostics-show-highlight-colors" } */
struct s {};
struct t {};
typedef struct s S;
typedef struct t T;
extern S callee_4a (void);
extern T callee_4b (void);
int test_4 (void)
{
return callee_4a () + callee_4b ();
/* { dg-begin-multiline-output "" }
 error: invalid operands to binary + (have 'S' {aka 'struct s'} and 'T' {aka 'struct t'})
{ dg-end-multiline-output "" } */
/* { dg-begin-multiline-output "" }
return callee_4a () + callee_4b ();
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
| |
| T {aka struct t}
S {aka struct s}
{ dg-end-multiline-output "" } */
/* { dg-prune-output "In function" } */
/* { dg-prune-output "bad-binary-ops-no-highlight-colors.c" } */
}