Remove unneeded typename from test
Differential Revision: https://reviews.llvm.org/D38628 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@315278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,5 +18,5 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
typedef std::pair<int, short> T;
|
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() {
|
int main() {
|
||||||
using V = std::variant<int, void *, const void *, long double>;
|
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<>}}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user