Task-number: QTCREATORBUG-6465
Change-Id: I98894cbd247b53e18b86ec997b9087d1f2d511f3
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-03 19:19:10 +01:00
committed by hjk
parent 2f9ff18e75
commit dbc84d8c1c
2 changed files with 24 additions and 1 deletions

View File

@@ -1346,7 +1346,13 @@ class Dumper:
return
if type.code == TypedefCode:
self.putItem(value.cast(type.strip_typedefs()))
type = type.strip_typedefs()
# Workaround for http://sourceware.org/bugzilla/show_bug.cgi?id=13380
if type.code == ArrayCode:
value = parseAndEvaluate("{%s}%s" % (type, value.address))
else:
value = value.cast(type.strip_typedefs())
self.putItem(value)
self.putBetterType(typeName)
return

View File

@@ -3651,6 +3651,22 @@ namespace cp42895 {
} // namespace cp
namespace bug6465 {
// https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6465
void test6465()
{
typedef char Foo[20];
Foo foo = "foo";
char bar[20] = "baz";
// BREAK HERE
dummyStatement(&foo, &bar);
}
} // namespace bug6465
namespace varargs {
void test(const char *format, ...)
@@ -3814,6 +3830,7 @@ int main(int argc, char *argv[])
bug5106::test5106();
bug5184::test5184();
bug5799::test5799();
bug6465::test6465();
application::testApplicationStart(argc, argv);