summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/attr_targetclones1.d
blob: 287782c370904a049cb47ca456025d103bd48f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target i?86*-*-* x86_64-*-* } }

import gcc.attributes;

@target_clones("default")
int func() // { dg-warning "single .target_clones. attribute is ignored" }
{
    return 0;
}

@target_clones("default")
int var = 0; // { dg-warning ".target_clones. attribute ignored" }