mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
4c9b681d6d
commit
303421884a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user