c { dg-do run }c This program tests the fix for PR22304.cc provided by Paul Thomas - pault@gcc.gnu.orgcinteger a(2),b,cCOMMON/foo/aEQUIVALENCE(a(1),b),(c,a(2))a(1)=101a(2)=102call bar()ENDsubroutine bar()integer a(2),b,c,dCOMMON/foo/aEQUIVALENCE(a(1),b),(c,a(2))if(b.ne.101)call abort()if(c.ne.102)call abort()END