| author | |
| committer | |
| log | c1640a924643d0b3d3616c2a41f70918d6150301 |
| tree | 8bf2b3d56c08aba6b370608694dbfee8b330d86e |
| parent | 4c1f0f02d021f7897e530c4406607a959bdb5c79 |
2 files changed, 2 insertions(+), 2 deletions(-)
src/parseh.cpp+1-1| ... | @@ -481,7 +481,7 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const | ... | @@ -481,7 +481,7 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const |
| 481 | case Type::Decayed: | 481 | case Type::Decayed: |
| 482 | { | 482 | { |
| 483 | const DecayedType *decayed_ty = static_cast<const DecayedType *>(ty); | 483 | const DecayedType *decayed_ty = static_cast<const DecayedType *>(ty); |
| 484 | return resolve_qual_type(c, decayed_ty->getOriginalType(), decl); | 484 | return resolve_qual_type(c, decayed_ty->getDecayedType(), decl); |
| 485 | } | 485 | } |
| 486 | case Type::BlockPointer: | 486 | case Type::BlockPointer: |
| 487 | case Type::LValueReference: | 487 | case Type::LValueReference: |
test/run_tests.cpp+1-1| ... | @@ -1969,7 +1969,7 @@ pub const Bar = enum_Bar;)OUTPUT"); | ... | @@ -1969,7 +1969,7 @@ pub const Bar = enum_Bar;)OUTPUT"); |
| 1969 | 1969 | ||
| 1970 | add_parseh_case("constant size array", R"SOURCE( | 1970 | add_parseh_case("constant size array", R"SOURCE( |
| 1971 | void func(int array[20]); | 1971 | void func(int array[20]); |
| 1972 | )SOURCE", 1, R"OUTPUT(pub extern fn func(array: [20]c_int);)OUTPUT"); | 1972 | )SOURCE", 1, "pub extern fn func(array: ?&c_int);"); |
| 1973 | 1973 | ||
| 1974 | 1974 | ||
| 1975 | add_parseh_case("self referential struct with function pointer", R"SOURCE( | 1975 | add_parseh_case("self referential struct with function pointer", R"SOURCE( |