1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <valarray> 11 12 // template<class T> class valarray; 13 14 // valarray(); 15 16 #include <valarray> 17 #include <cassert> 18 main()19int main() 20 { 21 { 22 std::valarray<int> v; 23 assert(v.size() == 0); 24 } 25 { 26 std::valarray<float> v; 27 assert(v.size() == 0); 28 } 29 { 30 std::valarray<double> v; 31 assert(v.size() == 0); 32 } 33 { 34 std::valarray<std::valarray<double> > v; 35 assert(v.size() == 0); 36 } 37 } 38