1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

llvm-svn: 198379
This commit is contained in:
David Blaikie 2014-01-03 00:00:41 +00:00
parent 3036d7607c
commit b1e8db189d

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");