From: David Blaikie Date: Fri, 3 Jan 2014 00:00:41 +0000 (+0000) Subject: Fix break introduced in r198377 due to using a local type as a template parameter. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=303421884aee881b93ca3717f0bac82a04604d33;p=oota-llvm.git 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 --- diff --git a/unittests/ADT/StringMapTest.cpp b/unittests/ADT/StringMapTest.cpp index 130a799848d..b6d41bcc8e5 100644 --- a/unittests/ADT/StringMapTest.cpp +++ b/unittests/ADT/StringMapTest.cpp @@ -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 t; t.GetOrCreateValue("Test", StringMapTestStruct(123)); StringMap::iterator iter = t.find("Test");