| 1 |
// { dg-do compile } |
| 2 |
// { dg-options "-fdump-tree-optimized" } |
| 3 |
|
| 4 |
import gcc.attributes; |
| 5 |
|
| 6 |
@attribute("simd") |
| 7 |
int simd_ignored; // { dg-warning ".simd. attribute ignored" } |
| 8 |
|
| 9 |
@attribute("simd", 123) |
| 10 |
int simd_string() { return 0; } // { dg-error ".simd. attribute argument not a string constant" } |
| 11 |
|
| 12 |
@attribute("simd", "invalid") |
| 13 |
int simd_invalid() { return 0; } // { dg-error "only .inbranch. and .notinbranch. flags are allowed for .simd. attribute" } |
| 14 |
|
| 15 |
@attribute("simd", "notinbranch", "inbranch") |
| 16 |
int simd_wrong_args() { return 0; } // { dg-error "wrong number of arguments specified for .simd. attribute" } |