Debian Codegraph @

gcc/testsuite/c-c++-common/torture/strub-data5.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=strict" } */
3 /* { dg-require-effective-target strub } */
4
5 /* It would be desirable to issue at least warnings for these. */
6
7 typedef int __attribute__ ((__strub__)) strub_int;
8 strub_int *ptr;
9
10 int *f () {
11 return ptr; /* { dg-message "incompatible|invalid conversion" } */
12 }
13
14 strub_int *g () {
15 return f (); /* { dg-message "incompatible|invalid conversion" } */
16 }