Remove unneeded typename from test
Differential Revision: https://reviews.llvm.org/D38628 llvm-svn: 315278
This commit is contained in:
parent
252dd8b745
commit
b1543a67a0
|
@ -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>>}}
|
||||
}
|
||||
|
|
|
@ -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<>}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue