Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
gdc.dg
/
attr_weak1.d
blob: 0b84454b3ff8ba2c3a1f4f535628a0dfe64ce784 [
file
] [
log
] [
blame
]
// { dg-do compile }
import
gcc
.
attributes
;
pragma
(
inline
,
true
)
@weak
int
func
()
// { dg-warning "inline function .func. declared weak" }
{
return
0
;
}
int
parm
(
@weak
int
a
)
// { dg-warning ".weak. attribute ignored" }
{
return
a
;
}