Debian Codegraph @

gcc/testsuite/gcc.target/s390/target-attribute/tattr-13.c

raw
1 /* Functional tests for the "target" attribute and pragma. */
2
3 /* { dg-do compile } */
4 /* { dg-require-effective-target target_attribute } */
5 /* { dg-options "-march=z13" } */
6
7 #pragma GCC target ("zvector","zvector,arch=z13","arch=z13,zvector","zvector")
8 __attribute__ ((target("arch=z13","arch=z13")))
9 void a(void)
10 {
11 }
12
13 #pragma GCC target ("arch=z13","arch=z13,arch=z13","arch=z13,arch=z13,arch=z13")
14 __attribute__ ((target("zvector","arch=z13")))
15 void
16 b(void)
17 { /* { dg-error "value .zvector. is not supported by attribute .target." } */
18 }