types.pass.cpp revision c52f43e72dfcea03037729649da84c23b3beb04a
1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10// <utility> 11 12// template <class T1, class T2> 13// struct pair 14// { 15// typedef T1 first_type; 16// typedef T2 second_type; 17 18#include <utility> 19#include <type_traits> 20 21int main() 22{ 23 typedef std::pair<float, short*> P; 24 static_assert((std::is_same<P::first_type, float>::value), ""); 25 static_assert((std::is_same<P::second_type, short*>::value), ""); 26} 27