diff options
Diffstat (limited to 'libcxx/test/strings/basic.string/string.capacity/empty.pass.cpp')
| -rw-r--r-- | libcxx/test/strings/basic.string/string.capacity/empty.pass.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libcxx/test/strings/basic.string/string.capacity/empty.pass.cpp b/libcxx/test/strings/basic.string/string.capacity/empty.pass.cpp deleted file mode 100644 index c79ac77788b3..000000000000 --- a/libcxx/test/strings/basic.string/string.capacity/empty.pass.cpp +++ /dev/null @@ -1,30 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// <string> - -// bool empty() const; - -#include <string> -#include <cassert> - -template <class S> -void -test(const S& s) -{ - assert(s.empty() == (s.size() == 0)); -} - -int main() -{ - typedef std::string S; - test(S()); - test(S("123")); - test(S("12345678901234567890123456789012345678901234567890")); -} |
