From 303421884aee881b93ca3717f0bac82a04604d33 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 3 Jan 2014 00:00:41 +0000 Subject: [PATCH] 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 --- unittests/ADT/StringMapTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unittests/ADT/StringMapTest.cpp b/unittests/ADT/StringMapTest.cpp index 130a799848d2..b6d41bcc8e5a 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");