* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / target-attribute / tattr-6.c
blob531dec24edb2118bf5156303b2ed58bd526216db
1 /* Functional tests for the "target" attribute and pragma. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target target_attribute } */
5 /* { dg-options "-mno-warn-dynamicstack" } */
7 #pragma GCC target("warn-dynamicstack")
8 void p1(int s)
10 char b[s];
11 } /* { dg-warning "uses dynamic stack allocation" } */
12 #pragma GCC reset_options
14 #pragma GCC target("no-warn-dynamicstack")
15 void p0(int s)
17 char b[s];
19 #pragma GCC reset_options
21 __attribute__ ((target("warn-dynamicstack")))
22 void a1(int s)
24 char b[s];
25 } /* { dg-warning "uses dynamic stack allocation" } */
27 __attribute__ ((target("no-warn-dynamicstack")))
28 void a0(int s)
30 char b[s];
33 void d(int s)
35 char b[s];