Howard Hinnant | 8784650 | 2010-08-12 21:14:20 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
Chandler Carruth | 7c3769d | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Howard Hinnant | 8784650 | 2010-08-12 21:14:20 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | // <regex> |
| 10 | |
| 11 | // typedef match_results<const char*> cmatch; |
| 12 | |
| 13 | #include <regex> |
| 14 | #include <type_traits> |
Marshall Clow | 6dfff1c | 2016-04-26 16:24:44 +0000 | [diff] [blame] | 15 | #include "test_macros.h" |
Howard Hinnant | 8784650 | 2010-08-12 21:14:20 +0000 | [diff] [blame] | 16 | |
JF Bastien | e15dd4e | 2019-02-04 20:31:13 +0000 | [diff] [blame^] | 17 | int main(int, char**) |
Howard Hinnant | 8784650 | 2010-08-12 21:14:20 +0000 | [diff] [blame] | 18 | { |
| 19 | static_assert((std::is_same<std::match_results<const char*>, std::cmatch>::value), ""); |
JF Bastien | e15dd4e | 2019-02-04 20:31:13 +0000 | [diff] [blame^] | 20 | |
| 21 | return 0; |
Howard Hinnant | 8784650 | 2010-08-12 21:14:20 +0000 | [diff] [blame] | 22 | } |