[libcxx] r315278 - Remove unneeded typename from test
Roger Ferrer Ibanez via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 10 00:42:20 PDT 2017
Author: rogfer01
Date: Tue Oct 10 00:42:19 2017
New Revision: 315278
URL: http://llvm.org/viewvc/llvm-project?rev=315278&view=rev
Log:
Remove unneeded typename from test
Differential Revision: https://reviews.llvm.org/D38628
Modified:
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
Modified: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp?rev=315278&r1=315277&r2=315278&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp Tue Oct 10 00:42:19 2017
@@ -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>>}}
}
Modified: libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp?rev=315278&r1=315277&r2=315278&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp Tue Oct 10 00:42:19 2017
@@ -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<>}}
}
More information about the cfe-commits
mailing list