[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / pr57945.c
blob2678779d1dc8d7c0cbf58576b175238b552a6edd
1 /* PR c++/57945 */
2 /* { dg-do compile } */
4 extern int j;
5 static int i __attribute__((weakref("j")));
6 /* { dg-error "PTX does not support weak declarations" "" { target nvptx-*-* } .-1 } */
8 int
9 foo (void)
11 return &i ? i : 0;