Remove unneeded typename from test
authorRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Tue, 10 Oct 2017 07:42:19 +0000 (07:42 +0000)
committerRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Tue, 10 Oct 2017 07:42:19 +0000 (07:42 +0000)
Differential Revision: https://reviews.llvm.org/D38628

llvm-svn: 315278

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

index 8e994126cc0d269d68f882bc620160fd0061fded..4ca31f7debe8660e5b1e4ea2f616ccc3f65bff95 100644 (file)
@@ -18,5 +18,5 @@
 int main()
 {
     typedef std::pair<int, short> T;
-    typename std::tuple_element<2, T>::type foo; // expected-error@utility:* {{Index out of bounds in std::tuple_element<std::pair<T1, T2>>}}
+    std::tuple_element<2, T>::type foo; // expected-error@utility:* {{Index out of bounds in std::tuple_element<std::pair<T1, T2>>}}
 }
index cbaa2a568d5bfde583c30cf0b58f587218e822f6..31521dae223cf39e5202cc4160f1f4224b111efe 100644 (file)
@@ -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@variant:* {{Index out of bounds in std::variant_alternative<>}}
+    std::variant_alternative<4, V>::type foo;  // expected-error@variant:* {{Index out of bounds in std::variant_alternative<>}}
 }