aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/no-stack-protector-attr-2.C
blob: 6db6fef58d1e85ac255d917e4db8f9fda22ded17 (plain)
1
2
3
4
5
6
7
/* 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;
}