Fix break introduced in r198377 due to using a local type as a template parameter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-01-03 00:00:41 +00:00
parent 4c9b681d6d
commit 303421884a

View File

@ -204,13 +204,13 @@ TEST_F(StringMapTest, InsertTest) {
}
// Create a non-default constructable value
TEST_F(StringMapTest, NonDefaultConstructable) {
struct StringMapTestStruct {
StringMapTestStruct(int i) : i(i) {}
StringMapTestStruct() LLVM_DELETED_FUNCTION;
int i;
};
struct StringMapTestStruct {
StringMapTestStruct(int i) : i(i) {}
StringMapTestStruct() LLVM_DELETED_FUNCTION;
int i;
};
TEST_F(StringMapTest, NonDefaultConstructable) {
StringMap<StringMapTestStruct> t;
t.GetOrCreateValue("Test", StringMapTestStruct(123));
StringMap<StringMapTestStruct>::iterator iter = t.find("Test");