1 /* Verify that the "aka" descriptions for typedefs are correctly
4 /* Exercise %H and %I. */
7 typedef struct s2 {int i;} t2;
14 foo (&pos); // { dg-error "cannot convert 't2\\*' {aka 's2\\*'} to 't1\\*' {aka 's1\\*'}" }
24 void test_2 (const s3 *ptr)
26 ptr->m3 (); // { dg-error "passing 'const s3' as 'this' argument discards qualifiers" }
29 void test_3 (const t3 *ptr)
31 ptr->m3 (); // { dg-error "passing 'const t3' {aka 'const s3'} as 'this' argument discards qualifiers" }