! { dg-do run }! { dg-options "-std=f2003 -fall-intrinsics" }! PR fortran/38936! Check association and pointers.! Contributed by Daniel Kraft, d@domob.eu.PROGRAM mainIMPLICIT NONEINTEGER,TARGET::tgtINTEGER,POINTER::ptrtgt=1ASSOCIATE(x=>tgt)ptr=>xIF(ptr/=1)CALL abort()ptr=2END ASSOCIATE IF(tgt/=2)CALL abort()END PROGRAM main