Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
no-stack-protector-attr-2.C
blob: 6db6fef58d1e85ac255d917e4db8f9fda22ded17 [
file
] [
log
] [
blame
]
/* PR c/94722 */
/* { dg-do compile } */
int
__attribute__
((
no_stack_protector
,
stack_protect
))
c
()
/* { dg-warning "ignoring attribute 'stack_protect' because it conflicts with attribute 'no_stack_protector'" } */
{
return
0
;
}