1 /* { dg-options "-fdiagnostics-show-caret" } */
9 int test (union u
*ptr
)
11 return ptr
->colour
; /* { dg-error "did you mean .color.?" } */
13 /* Verify that we get an underline and a fixit hint. */
14 /* { dg-begin-multiline-output "" }
18 { dg-end-multiline-output "" } */
22 /* Verify that we don't offer a fixit hint in the presence of
24 int test_macro (union u
*ptr
)
26 #define FIELD colour /* { dg-error "did you mean .color.?" } */
29 /* { dg-begin-multiline-output "" }
32 { dg-end-multiline-output "" } */
34 /* { dg-begin-multiline-output "" }
37 { dg-end-multiline-output "" } */