blob: 0289135318a9de29cf9ba0244e8591123876347a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do compile } */
/* { dg-options "-O2" } */
import gcc.attributes;
@target_clones("avx", "default")
@noclone
void func() // { dg-error "clones for .target_clones. attribute cannot be created" }
{ // { dg-message "function .func. can never be copied because it has .noclone. attribute" "" { target *-*-* } .-1 }
}
@noclone int var = 0; // { dg-warning ".noclone. attribute ignored" }
|