Make HAVE_CPP_USING test even trickier to force it to break on gcc-2.7.2.3, which really *doesn't* support |using|. r=scc

This commit is contained in:
waterson%netscape.com 2000-03-28 00:24:17 +00:00
parent b5fb426956
commit d3245e2b1d

View File

@ -2254,12 +2254,17 @@ dnl fi
AC_CACHE_CHECK(for C++ \"using\" keyword,
ac_cv_cpp_using,
[AC_TRY_COMPILE(class X { public: int go(const X&) {return 3;} };
[AC_TRY_COMPILE(class X {
public: int go(const X&) {return 3;}
int jo(const X&) {return 3;}
};
class Y : public X {
public: int go(int) {return 2;}
int jo(int) {return 2;}
using X::jo;
private: using X::go;
};,
X x; Y y;,
X x; Y y; y.jo(x);,
ac_cv_cpp_using=yes,
ac_cv_cpp_using=no)])
if test "$ac_cv_cpp_using" = yes ; then