* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / pr81534.c
blob0e1bd99b9cbaea59d5b7e7dd899cd17583da5ce0
1 /* PR81534 This testcase used to fail because the HI/QI
2 "atomic_fetch_<atomic><mode>" expander accepted symbolic references
3 and emitted CAS patterns whose insn definition rejected them. */
5 /* { dg-do compile } */
6 /* { dg-options "-O2 -march=zEC12" } */
8 struct {
9 short b;
10 long c;
11 } a = {};
13 void
14 d ()
16 __atomic_fetch_add(&a.b, 0, 5);