1 /* { dg-do compile } */
2 /* { dg-options "-Wc++-compat" } */
4 typedef struct A
{ int i
; } B
;
5 typedef struct T
{ int i
; } T
;
6 typedef const float TFA
;
13 void fn1 (B
*); /* { dg-message "expected 'B \\*' {aka 'struct A \\*'} but argument is of type 'struct B \\*'" } */
19 fn1 ((struct B
*) b
); /* { dg-warning "passing argument" } */
20 fn2 (i
); /* { dg-warning "passing argument" } */
21 sizeof (arr
); /* { dg-error "invalid application of .sizeof. to incomplete type .int \\(\\*\\\[\\\]\\)\\\[\\\]." } */
27 T
*t
= a
; /* { dg-warning "request for implicit conversion from 'void \\*' to 'T \\*' {aka 'struct T \\*'} not" } */