Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/diag-aka-2.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
131 | 1 /* Verify that the "aka" descriptions for typedefs are correctly |
2 quoted (PR 62170). */ | |
3 | |
4 typedef struct s1 t1; | |
5 | |
6 int foo(t1 *); /* { dg-message "expected 't1 \\*' {aka 'struct s1 \\*'} but argument is of type 't2 \\*' {aka 'struct s2 \\*'}" } */ | |
7 | |
8 int bar() { | |
9 typedef struct s2 {int i;} t2; | |
10 t2 pos; | |
11 return foo(&pos); /* { dg-error "incompatible pointer type" } */ | |
12 } |