1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // The LLVM Compiler Infrastructure
5 //
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11 // <regex>
12
13 // namespace regex_constants
14 // {
15 //
16 // enum error_type
17 // {
18 // error_collate = unspecified,
19 // error_ctype = unspecified,
20 // error_escape = unspecified,
21 // error_backref = unspecified,
22 // error_brack = unspecified,
23 // error_paren = unspecified,
24 // error_brace = unspecified,
25 // error_badbrace = unspecified,
26 // error_range = unspecified,
27 // error_space = unspecified,
28 // error_badrepeat = unspecified,
29 // error_complexity = unspecified,
30 // error_stack = unspecified
31 // };
32 //
33 // }
34
35 #include <regex>
36 #include <cassert>
37 #include "test_macros.h"
38
main()39 int main()
40 {
41 assert(std::regex_constants::error_collate != 0);
42 assert(std::regex_constants::error_ctype != 0);
43 assert(std::regex_constants::error_escape != 0);
44 assert(std::regex_constants::error_backref != 0);
45 assert(std::regex_constants::error_brack != 0);
46 assert(std::regex_constants::error_paren != 0);
47 assert(std::regex_constants::error_brace != 0);
48 assert(std::regex_constants::error_badbrace != 0);
49 assert(std::regex_constants::error_range != 0);
50 assert(std::regex_constants::error_space != 0);
51 assert(std::regex_constants::error_badrepeat != 0);
52 assert(std::regex_constants::error_complexity != 0);
53 assert(std::regex_constants::error_stack != 0);
54
55 assert(std::regex_constants::error_collate != std::regex_constants::error_ctype);
56 assert(std::regex_constants::error_collate != std::regex_constants::error_escape);
57 assert(std::regex_constants::error_collate != std::regex_constants::error_backref);
58 assert(std::regex_constants::error_collate != std::regex_constants::error_brack);
59 assert(std::regex_constants::error_collate != std::regex_constants::error_paren);
60 assert(std::regex_constants::error_collate != std::regex_constants::error_brace);
61 assert(std::regex_constants::error_collate != std::regex_constants::error_badbrace);
62 assert(std::regex_constants::error_collate != std::regex_constants::error_range);
63 assert(std::regex_constants::error_collate != std::regex_constants::error_space);
64 assert(std::regex_constants::error_collate != std::regex_constants::error_badrepeat);
65 assert(std::regex_constants::error_collate != std::regex_constants::error_complexity);
66 assert(std::regex_constants::error_collate != std::regex_constants::error_stack);
67
68 assert(std::regex_constants::error_ctype != std::regex_constants::error_escape);
69 assert(std::regex_constants::error_ctype != std::regex_constants::error_backref);
70 assert(std::regex_constants::error_ctype != std::regex_constants::error_brack);
71 assert(std::regex_constants::error_ctype != std::regex_constants::error_paren);
72 assert(std::regex_constants::error_ctype != std::regex_constants::error_brace);
73 assert(std::regex_constants::error_ctype != std::regex_constants::error_badbrace);
74 assert(std::regex_constants::error_ctype != std::regex_constants::error_range);
75 assert(std::regex_constants::error_ctype != std::regex_constants::error_space);
76 assert(std::regex_constants::error_ctype != std::regex_constants::error_badrepeat);
77 assert(std::regex_constants::error_ctype != std::regex_constants::error_complexity);
78 assert(std::regex_constants::error_ctype != std::regex_constants::error_stack);
79
80 assert(std::regex_constants::error_escape != std::regex_constants::error_backref);
81 assert(std::regex_constants::error_escape != std::regex_constants::error_brack);
82 assert(std::regex_constants::error_escape != std::regex_constants::error_paren);
83 assert(std::regex_constants::error_escape != std::regex_constants::error_brace);
84 assert(std::regex_constants::error_escape != std::regex_constants::error_badbrace);
85 assert(std::regex_constants::error_escape != std::regex_constants::error_range);
86 assert(std::regex_constants::error_escape != std::regex_constants::error_space);
87 assert(std::regex_constants::error_escape != std::regex_constants::error_badrepeat);
88 assert(std::regex_constants::error_escape != std::regex_constants::error_complexity);
89 assert(std::regex_constants::error_escape != std::regex_constants::error_stack);
90
91 assert(std::regex_constants::error_backref != std::regex_constants::error_brack);
92 assert(std::regex_constants::error_backref != std::regex_constants::error_paren);
93 assert(std::regex_constants::error_backref != std::regex_constants::error_brace);
94 assert(std::regex_constants::error_backref != std::regex_constants::error_badbrace);
95 assert(std::regex_constants::error_backref != std::regex_constants::error_range);
96 assert(std::regex_constants::error_backref != std::regex_constants::error_space);
97 assert(std::regex_constants::error_backref != std::regex_constants::error_badrepeat);
98 assert(std::regex_constants::error_backref != std::regex_constants::error_complexity);
99 assert(std::regex_constants::error_backref != std::regex_constants::error_stack);
100
101 assert(std::regex_constants::error_brack != std::regex_constants::error_paren);
102 assert(std::regex_constants::error_brack != std::regex_constants::error_brace);
103 assert(std::regex_constants::error_brack != std::regex_constants::error_badbrace);
104 assert(std::regex_constants::error_brack != std::regex_constants::error_range);
105 assert(std::regex_constants::error_brack != std::regex_constants::error_space);
106 assert(std::regex_constants::error_brack != std::regex_constants::error_badrepeat);
107 assert(std::regex_constants::error_brack != std::regex_constants::error_complexity);
108 assert(std::regex_constants::error_brack != std::regex_constants::error_stack);
109
110 assert(std::regex_constants::error_paren != std::regex_constants::error_brace);
111 assert(std::regex_constants::error_paren != std::regex_constants::error_badbrace);
112 assert(std::regex_constants::error_paren != std::regex_constants::error_range);
113 assert(std::regex_constants::error_paren != std::regex_constants::error_space);
114 assert(std::regex_constants::error_paren != std::regex_constants::error_badrepeat);
115 assert(std::regex_constants::error_paren != std::regex_constants::error_complexity);
116 assert(std::regex_constants::error_paren != std::regex_constants::error_stack);
117
118 assert(std::regex_constants::error_brace != std::regex_constants::error_badbrace);
119 assert(std::regex_constants::error_brace != std::regex_constants::error_range);
120 assert(std::regex_constants::error_brace != std::regex_constants::error_space);
121 assert(std::regex_constants::error_brace != std::regex_constants::error_badrepeat);
122 assert(std::regex_constants::error_brace != std::regex_constants::error_complexity);
123 assert(std::regex_constants::error_brace != std::regex_constants::error_stack);
124
125 assert(std::regex_constants::error_badbrace != std::regex_constants::error_range);
126 assert(std::regex_constants::error_badbrace != std::regex_constants::error_space);
127 assert(std::regex_constants::error_badbrace != std::regex_constants::error_badrepeat);
128 assert(std::regex_constants::error_badbrace != std::regex_constants::error_complexity);
129 assert(std::regex_constants::error_badbrace != std::regex_constants::error_stack);
130
131 assert(std::regex_constants::error_range != std::regex_constants::error_space);
132 assert(std::regex_constants::error_range != std::regex_constants::error_badrepeat);
133 assert(std::regex_constants::error_range != std::regex_constants::error_complexity);
134 assert(std::regex_constants::error_range != std::regex_constants::error_stack);
135
136 assert(std::regex_constants::error_space != std::regex_constants::error_badrepeat);
137 assert(std::regex_constants::error_space != std::regex_constants::error_complexity);
138 assert(std::regex_constants::error_space != std::regex_constants::error_stack);
139
140 assert(std::regex_constants::error_badrepeat != std::regex_constants::error_complexity);
141 assert(std::regex_constants::error_badrepeat != std::regex_constants::error_stack);
142
143 assert(std::regex_constants::error_complexity != std::regex_constants::error_stack);
144 }
145