diff options
-rw-r--r-- | autoconf/m4/visibility_inlines_hidden.m4 | 4 | ||||
-rwxr-xr-x | configure | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/autoconf/m4/visibility_inlines_hidden.m4 b/autoconf/m4/visibility_inlines_hidden.m4 index 42ddbe9..ee3d61b 100644 --- a/autoconf/m4/visibility_inlines_hidden.m4 +++ b/autoconf/m4/visibility_inlines_hidden.m4 @@ -9,7 +9,9 @@ AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN], [ AC_LANG_PUSH([C++]) oldcxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM( + [template <typename T> struct X { inline void f() {} };], + [X<int>().f();])], [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no]) CXXFLAGS="$oldcxxflags" AC_LANG_POP([C++]) @@ -20993,11 +20993,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - +template <typename T> struct X { inline void f() {} }; int main () { - +X<int>().f(); ; return 0; } |