c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / strub-data5.c
blob0a5edac414df1a63d6e58c4fee5babf8fa41f950
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=strict" } */
3 /* { dg-require-effective-target strub } */
5 /* It would be desirable to issue at least warnings for these. */
7 typedef int __attribute__ ((__strub__)) strub_int;
8 strub_int *ptr;
10 int *f () {
11 return ptr; /* { dg-message "incompatible|invalid conversion" } */
14 strub_int *g () {
15 return f (); /* { dg-message "incompatible|invalid conversion" } */