Skip to content

Commit

Permalink
Fix break introduced in r198377 due to using a local type as a templa…
Browse files Browse the repository at this point in the history
…te parameter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198379 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Jan 3, 2014
1 parent 4c9b681 commit 3034218
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unittests/ADT/StringMapTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3034218

Please sign in to comment.