//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11 #include #include #include "test_macros.h" 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(int, char**) { 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; }