c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / strub-unsupported-2.c
blob3586f4f679dfee282b96a88b8ba492b2effb8ca5
1 /* { dg-do compile } */
3 /* Check that, when strub is not supported (so no dg-required-effective-target
4 strub above), we report when pointers to strub functions are called. This
5 cannot be part of strub-unsupported.c because errors in the strub-mode pass
6 prevent the main strub pass, where errors at calls are detected, from
7 running. */
9 void __attribute__ ((__strub__ ("at-calls"))) (*p) (void);
11 void m () {
12 p (); /* { dg-message "unsupported" "" { target { ! strub } } } */