repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
torture
/
pr57945.c
blob
2678779d1dc8d7c0cbf58576b175238b552a6edd
1
/* PR c++/57945 */
2
/* { dg-do compile } */
3
4
extern
int
j
;
5
static int
i
__attribute__
((
weakref
(
"j"
)));
6
/* { dg-error "PTX does not support weak declarations" "" { target nvptx-*-* } .-1 } */
7
8
int
9
foo
(
void
)
10
{
11
return
&
i
?
i
:
0
;
12
}