1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 // void*& pword(int idx);
16 // This test compiles but never completes when compiled against the MSVC STL
38 for (std::intptr_t i = 0; i < 10000; ++i)
40 assert(b.pword(i) == 0);
41 b.pword(i) = (void*)i;
42 assert(b.pword(i) == (void*)i);
43 for (std::intptr_t j = 0; j <= i; ++j)
44 assert(b.pword(j) == (void*)j);