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.  */
4 
5 /* { dg-do compile } */
6 /* { dg-options "-O2 -march=zEC12" } */
7 
8 struct {
9   short b;
10   long c;
11 } a = {};
12 
13 void
d()14 d ()
15 {
16   __atomic_fetch_add(&a.b, 0, 5);
17 }
18