Remove unneeded typename from test

Differential Revision: https://reviews.llvm.org/D38628

llvm-svn: 315278
This commit is contained in:
Roger Ferrer Ibanez 2017-10-10 07:42:19 +00:00
parent 252dd8b745
commit b1543a67a0
2 changed files with 2 additions and 2 deletions

View 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>>}}
}

View 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<>}}
}