Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
torture
/
pr57945.c
blob: 2678779d1dc8d7c0cbf58576b175238b552a6edd [
file
] [
log
] [
blame
]
/* PR c++/57945 */
/* { dg-do compile } */
extern
int
j
;
static
int
i __attribute__
((
weakref
(
"j"
)));
/* { dg-error "PTX does not support weak declarations" "" { target nvptx-*-* } .-1 } */
int
foo
(
void
)
{
return
&
i
?
i
:
0
;
}