[PATCH] D38628: Remove unneeded typename from test

Roger Ferrer Ibanez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 10 00:42:37 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL315278: Remove unneeded typename from test (authored by rogfer01).

Changed prior to commit:
  https://reviews.llvm.org/D38628?vs=118183&id=118321#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D38628

Files:
  libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
  libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp


Index: libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp
===================================================================
--- libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp
+++ libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp
@@ -28,5 +28,5 @@
 
 int main() {
     using V = std::variant<int, void *, const void *, long double>;
-    typename std::variant_alternative<4, V>::type foo;  // expected-error at variant:* {{Index out of bounds in std::variant_alternative<>}}
+    std::variant_alternative<4, V>::type foo;  // expected-error at variant:* {{Index out of bounds in std::variant_alternative<>}}
 }
Index: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
===================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
+++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
@@ -18,5 +18,5 @@
 int main()
 {
     typedef std::pair<int, short> T;
-    typename std::tuple_element<2, T>::type foo; // expected-error at utility:* {{Index out of bounds in std::tuple_element<std::pair<T1, T2>>}}
+    std::tuple_element<2, T>::type foo; // expected-error at utility:* {{Index out of bounds in std::tuple_element<std::pair<T1, T2>>}}
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38628.118321.patch
Type: text/x-patch
Size: 1393 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171010/8ca67c92/attachment.bin>


More information about the cfe-commits mailing list