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