Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/diag-aka-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* Verify that the "aka" descriptions for typedefs are correctly quoted (PR 62170). */ typedef struct s1 t1; int foo(t1 *); /* { dg-message "expected 't1 \\*' {aka 'struct s1 \\*'} but argument is of type 't2 \\*' {aka 'struct s2 \\*'}" } */ int bar() { typedef struct s2 {int i;} t2; t2 pos; return foo(&pos); /* { dg-error "incompatible pointer type" } */ }