From 8ae90d7c7bb4f02a0f192b250fb037fc21ca5003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Tue, 4 Jul 2023 17:51:16 -0400 Subject: [PATCH] test: fix test case to match intention as commented --- regression-tests/pure2-optional-typename.cpp2 | 3 ++- regression-tests/test-results/pure2-optional-typename.cpp | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/regression-tests/pure2-optional-typename.cpp2 b/regression-tests/pure2-optional-typename.cpp2 index 696850e36..832e3c315 100644 --- a/regression-tests/pure2-optional-typename.cpp2 +++ b/regression-tests/pure2-optional-typename.cpp2 @@ -13,7 +13,8 @@ f: (x: T::value_type) -> T::value_type = { // Emitted `template`. ptr: type == * T; // Needed, pending #502. type: type == std::pointer_traits::rebind; // Type-only context. - _ = :std::pointer_traits::rebind = (); // Non type-only context. + // Uncomment once `typename` is supported for template arguments. + // _ = :identity::rebind> = (); // Non type-only context. // Aliases. w: type == T; diff --git a/regression-tests/test-results/pure2-optional-typename.cpp b/regression-tests/test-results/pure2-optional-typename.cpp index 9cb3dc1bb..0e0766cc0 100644 --- a/regression-tests/test-results/pure2-optional-typename.cpp +++ b/regression-tests/test-results/pure2-optional-typename.cpp @@ -15,7 +15,7 @@ template using identity = T; template [[nodiscard]] auto f(cpp2::in x) -> typename T::value_type; -#line 36 "pure2-optional-typename.cpp2" +#line 37 "pure2-optional-typename.cpp2" auto main() -> int; @@ -37,7 +37,8 @@ template [[nodiscard]] auto f(cpp2::in::template rebind;// Type-only context. - (void) typename std::pointer_traits::template rebind{};// Non type-only context. + // Uncomment once `typename` is supported for template arguments. + // _ = :identity::rebind> = (); // Non type-only context. // Aliases. using w = T;