Move test into test/std subdirectory.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
143
test/std/re/re.const/re.err/error_type.pass.cpp
Normal file
143
test/std/re/re.const/re.err/error_type.pass.cpp
Normal file
@@ -0,0 +1,143 @@
|
||||
// -*- C++ -*-
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <regex>
|
||||
|
||||
// namespace regex_constants
|
||||
// {
|
||||
//
|
||||
// enum error_type
|
||||
// {
|
||||
// error_collate = unspecified,
|
||||
// error_ctype = unspecified,
|
||||
// error_escape = unspecified,
|
||||
// error_backref = unspecified,
|
||||
// error_brack = unspecified,
|
||||
// error_paren = unspecified,
|
||||
// error_brace = unspecified,
|
||||
// error_badbrace = unspecified,
|
||||
// error_range = unspecified,
|
||||
// error_space = unspecified,
|
||||
// error_badrepeat = unspecified,
|
||||
// error_complexity = unspecified,
|
||||
// error_stack = unspecified
|
||||
// };
|
||||
//
|
||||
// }
|
||||
|
||||
#include <regex>
|
||||
#include <cassert>
|
||||
|
||||
int main()
|
||||
{
|
||||
assert(std::regex_constants::error_collate != 0);
|
||||
assert(std::regex_constants::error_ctype != 0);
|
||||
assert(std::regex_constants::error_escape != 0);
|
||||
assert(std::regex_constants::error_backref != 0);
|
||||
assert(std::regex_constants::error_brack != 0);
|
||||
assert(std::regex_constants::error_paren != 0);
|
||||
assert(std::regex_constants::error_brace != 0);
|
||||
assert(std::regex_constants::error_badbrace != 0);
|
||||
assert(std::regex_constants::error_range != 0);
|
||||
assert(std::regex_constants::error_space != 0);
|
||||
assert(std::regex_constants::error_badrepeat != 0);
|
||||
assert(std::regex_constants::error_complexity != 0);
|
||||
assert(std::regex_constants::error_stack != 0);
|
||||
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_ctype);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_escape);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_backref);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_brack);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_paren);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_brace);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_badbrace);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_collate != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_escape);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_backref);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_brack);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_paren);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_brace);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_badbrace);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_ctype != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_backref);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_brack);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_paren);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_brace);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_badbrace);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_escape != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_brack);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_paren);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_brace);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_badbrace);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_backref != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_paren);
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_brace);
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_badbrace);
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_brack != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_paren != std::regex_constants::error_brace);
|
||||
assert(std::regex_constants::error_paren != std::regex_constants::error_badbrace);
|
||||
assert(std::regex_constants::error_paren != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_paren != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_paren != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_paren != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_paren != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_brace != std::regex_constants::error_badbrace);
|
||||
assert(std::regex_constants::error_brace != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_brace != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_brace != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_brace != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_brace != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_badbrace != std::regex_constants::error_range);
|
||||
assert(std::regex_constants::error_badbrace != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_badbrace != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_badbrace != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_badbrace != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_range != std::regex_constants::error_space);
|
||||
assert(std::regex_constants::error_range != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_range != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_range != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_space != std::regex_constants::error_badrepeat);
|
||||
assert(std::regex_constants::error_space != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_space != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_badrepeat != std::regex_constants::error_complexity);
|
||||
assert(std::regex_constants::error_badrepeat != std::regex_constants::error_stack);
|
||||
|
||||
assert(std::regex_constants::error_complexity != std::regex_constants::error_stack);
|
||||
}
|
||||
Reference in New Issue
Block a user