// PR c++/39070 // { dg-do compile { target c++11 } } template struct junk { template static Z y(); template static int test(...); template static char test(decltype(y())*); static int const value=sizeof(test(0)); }; typedef char type[junk::value==sizeof(char) ? 1 : -1];