path: root/tests/benchmarks/gui
diff options
authorRohan McGovern <>2012-02-08 16:56:38 +1000
committerQt by Nokia <>2012-02-09 10:45:38 +0100
commitadfca27ac09cfd87121bb3611d74a75136ea6498 (patch)
tree9fe5080a0db3160f61776641bfa0411321185032 /tests/benchmarks/gui
parent68cee5258b3db95aaf98c456a257863a2ef7ba14 (diff)
Fixed tst_qobject::property for clang
The test was failing at: QCOMPARE(property.userType(), qMetaTypeId<CustomType*>()); The CustomType* metatype was not registered before this part of the test. qMetaTypeId<T> will register the metatype for T before returning it if it is not yet registered, while QMetaProperty::userType() returns 0 if the metatype is not yet registered. However, the order of evaluation of these two expressions in the above statement is technically undefined. Apparently, gcc evaluates the arguments in order from right to left, allowing the test to pass, while clang evaluates the arguments in order from left to right, causing the test to fail. Change-Id: I5059556e860cec29b57c31e4e26f46cf9e6055da Reviewed-by: Jędrzej Nowacki <>
Diffstat (limited to 'tests/benchmarks/gui')
0 files changed, 0 insertions, 0 deletions