| 1 |
/* Verify the "aka" descriptions for typedefs are correctly |
| 2 |
quoted and shown within labels. */ |
| 3 |
|
| 4 |
/* { dg-options "-fdiagnostics-show-caret" } */ |
| 5 |
|
| 6 |
typedef struct s1 t1; |
| 7 |
typedef struct s2 {int i;} t2; |
| 8 |
|
| 9 |
int foo(t1 *); |
| 10 |
|
| 11 |
void test_1 () { |
| 12 |
t2 pos; |
| 13 |
|
| 14 |
foo (&pos); // { dg-error "cannot convert 't2\\*' {aka 's2\\*'} to 't1\\*' {aka 's1\\*'}" } |
| 15 |
/* { dg-begin-multiline-output "" } |
| 16 |
foo (&pos); |
| 17 |
^~~~ |
| 18 |
| |
| 19 |
t2* {aka s2*} |
| 20 |
{ dg-end-multiline-output "" } */ |
| 21 |
/* { dg-begin-multiline-output "" } |
| 22 |
int foo(t1 *); |
| 23 |
^~~~ |
| 24 |
{ dg-end-multiline-output "" } */ |
| 25 |
} |