c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / attr_simd2.d
blob49cb6421fab3508a2a76243a8bb204a3e1b1d6f2
1 // { dg-do compile }
2 // { dg-options "-fdump-tree-optimized" }
4 import gcc.attributes;
6 @attribute("simd")
7 int simd_ignored; // { dg-warning ".simd. attribute ignored" }
9 @attribute("simd", 123)
10 int simd_string() { return 0; } // { dg-error ".simd. attribute argument not a string constant" }
12 @attribute("simd", "invalid")
13 int simd_invalid() { return 0; } // { dg-error "only .inbranch. and .notinbranch. flags are allowed for .simd. attribute" }
15 @attribute("simd", "notinbranch", "inbranch")
16 int simd_wrong_args() { return 0; } // { dg-error "wrong number of arguments specified for .simd. attribute" }