//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 #include #include template struct is_transparent { private: struct two {char lx; char lxx;}; template static two test(...); template static char test(typename U::is_transparent* = 0); public: static const bool value = sizeof(test(0)) == 1; }; int main () { static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); return 0; }