2017-11-06 Martin Liska <mliska@suse.cz>
* c-c++-common/Wimplicit-fallthrough-8.c: Return a value for
functions with non-void return type, or change type to void, or
add -Wno-return-type for test.
* c-c++-common/asan/pr63638.c (f): Likewise.
* c-c++-common/goacc/parallel-1.c (firstprivate): Likewise.
* c-c++-common/gomp/sink-1.c (depend): Likewise.
* c-c++-common/missing-symbol.c: Likewise.
* c-c++-common/pr36513-2.c (main2): Likewise.
* c-c++-common/pr36513.c (main1): Likewise.
* c-c++-common/pr49706-2.c: Likewise.
* c-c++-common/pr65120.c: Likewise.
* c-c++-common/tm/volatile-1.c (f): Likewise.
* c-c++-common/vector-1.c (f): Likewise.
* c-c++-common/vector-2.c (f): Likewise.
* g++.dg/abi/abi-tag14.C (f): Likewise.
(g): Likewise.
* g++.dg/abi/abi-tag18.C (f): Likewise.
* g++.dg/abi/abi-tag18a.C (f): Likewise.
* g++.dg/abi/covariant2.C (struct c3): Likewise.
(struct c7): Likewise.
* g++.dg/abi/covariant3.C (c1::f6): Likewise.
* g++.dg/abi/mangle7.C (f1): Likewise.
* g++.dg/asan/pr81340.C (class e): Likewise.
(e::f): Likewise.
* g++.dg/concepts/fn8.C (struct S): Likewise.
* g++.dg/concepts/pr65575.C (f): Likewise.
* g++.dg/concepts/template-parm11.C (f): Likewise.
* g++.dg/conversion/op6.C: Likewise.
* g++.dg/cpp0x/Wunused-variable-1.C (foo): Likewise.
* g++.dg/cpp0x/access01.C: Likewise.
* g++.dg/cpp0x/alignas3.C (class alignas): Likewise.
* g++.dg/cpp0x/auto2.C (f): Likewise.
(struct A): Likewise.
(main): Likewise.
* g++.dg/cpp0x/constexpr-array17.C (struct D): Likewise.
* g++.dg/cpp0x/constexpr-defarg2.C (a): Likewise.
(B::foo): Likewise.
(B::bar): Likewise.
* g++.dg/cpp0x/constexpr-memfn1.C (struct Y): Likewise.
* g++.dg/cpp0x/dc1.C (struct D): Likewise.
* g++.dg/cpp0x/dc3.C (struct D): Likewise.
* g++.dg/cpp0x/decltype12.C: Likewise.
* g++.dg/cpp0x/decltype17.C (main): Likewise.
* g++.dg/cpp0x/decltype3.C: Likewise.
* g++.dg/cpp0x/decltype41.C (struct C): Likewise.
(struct D): Likewise.
* g++.dg/cpp0x/defaulted28.C (f): Likewise.
* g++.dg/cpp0x/enum_base3.C (struct D): Likewise.
* g++.dg/cpp0x/gen-attrs-4.C (five): Likewise.
* g++.dg/cpp0x/initlist96.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-58566.C (struct A): Likewise.
* g++.dg/cpp0x/lambda/lambda-conv10.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-conv12.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-defarg3.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-ice3.C (Klass::dostuff): Likewise.
* g++.dg/cpp0x/lambda/lambda-ice5.C (foo): Likewise.
* g++.dg/cpp0x/lambda/lambda-nested2.C (f1): Likewise.
* g++.dg/cpp0x/lambda/lambda-template12.C (class X): Likewise.
* g++.dg/cpp0x/lambda/lambda-template2.C (struct T): Likewise.
* g++.dg/cpp0x/lambda/lambda-this12.C (struct A): Likewise.
* g++.dg/cpp0x/nolinkage1.C (main): Likewise.
* g++.dg/cpp0x/nolinkage1a.cc (dummy): Likewise.
* g++.dg/cpp0x/nsdmi-template5.C: Likewise.
* g++.dg/cpp0x/parse1.C (B::B): Likewise.
* g++.dg/cpp0x/pr34054.C (foo): Likewise.
* g++.dg/cpp0x/pr47416.C: Likewise.
* g++.dg/cpp0x/pr58781.C: Likewise.
* g++.dg/cpp0x/pr70538.C: Likewise.
* g++.dg/cpp0x/pr81325.C: Likewise.
* g++.dg/cpp0x/range-for13.C (begin): Likewise.
(end): Likewise.
* g++.dg/cpp0x/range-for14.C (begin): Likewise.
(end): Likewise.
* g++.dg/cpp0x/rv2n.C (test2_18): Likewise.
(test2_28): Likewise.
(test2_38): Likewise.
(test2_58): Likewise.
(test2_68): Likewise.
(test2_78): Likewise.
* g++.dg/cpp0x/rv3n.C (test3_128): Likewise.
* g++.dg/cpp0x/static_assert10.C (foo): Likewise.
* g++.dg/cpp0x/static_assert11.C (struct A): Likewise.
* g++.dg/cpp0x/static_assert12.C: Likewise.
* g++.dg/cpp0x/static_assert13.C: Likewise.
* g++.dg/cpp0x/trailing1.C (struct A): Likewise.
* g++.dg/cpp0x/trailing5.C (foo): Likewise.
(bar): Likewise.
* g++.dg/cpp0x/variadic114.C: Likewise.
* g++.dg/cpp0x/variadic57.C (Dims...>::foo): Likewise.
(bar): Likewise.
* g++.dg/cpp0x/variadic65.C: Likewise.
* g++.dg/cpp0x/variadic66.C (bind): Likewise.
* g++.dg/cpp0x/variadic97.C: Likewise.
* g++.dg/cpp0x/variadic98.C (__attribute__): Likewise.
* g++.dg/cpp1y/auto-fn11.C: Likewise.
* g++.dg/cpp1y/auto-fn29.C: Likewise.
* g++.dg/cpp1y/auto-fn38.C: Likewise.
* g++.dg/cpp1y/constexpr-return2.C: Likewise.
* g++.dg/cpp1y/lambda-init7.C (foo): Likewise.
* g++.dg/cpp1y/pr63996.C: Likewise.
* g++.dg/cpp1y/pr65202.C: Likewise.
* g++.dg/cpp1y/pr66443-cxx14.C (Ok): Likewise.
* g++.dg/cpp1y/pr79253.C (struct D): Likewise.
* g++.dg/cpp1y/static_assert1.C: Likewise.
* g++.dg/cpp1y/static_assert2.C: Likewise.
* g++.dg/cpp1y/var-templ44.C: Likewise.
* g++.dg/cpp1z/fold6.C (f): Likewise.
* g++.dg/cpp1z/inline-var2.C (foo): Likewise.
* g++.dg/cpp1z/lambda-this1.C (struct B): Likewise.
* g++.dg/cpp1z/static_assert-nomsg.C: Likewise.
* g++.dg/debug/dwarf-eh-personality-1.C (foobar): Likewise.
* g++.dg/debug/dwarf2/dwarf4-typedef.C (struct B): Likewise.
* g++.dg/debug/dwarf2/icf.C: Likewise.
* g++.dg/debug/dwarf2/pr61433.C (main): Likewise.
* g++.dg/debug/nullptr01.C (g): Likewise.
* g++.dg/debug/pr16792.C (foo): Likewise.
* g++.dg/debug/pr46241.C (class btCollisionWorld): Likewise.
* g++.dg/debug/pr46338.C (struct S): Likewise.
* g++.dg/debug/pr47106.C (baz): Likewise.
(bar): Likewise.
(foo): Likewise.
* g++.dg/debug/pr71057.C (fn1): Likewise.
* g++.dg/debug/pr71432.C (class CLIParameterType): Likewise.
(CLIParameterType::checkSwitched): Likewise.
* g++.dg/debug/pr80461.C (struct B): Likewise.
* g++.dg/dfp/44473-1.C (bar): Likewise.
* g++.dg/dfp/44473-2.C (bar): Likewise.
(foo): Likewise.
* g++.dg/eh/builtin1.C: Likewise.
* g++.dg/eh/builtin2.C: Likewise.
* g++.dg/eh/builtin3.C: Likewise.
* g++.dg/eh/pr45569.C (j): Likewise.
* g++.dg/eh/unwind2.C: Likewise.
* g++.dg/expr/bitfield11.C: Likewise.
* g++.dg/expr/static_cast7.C (f): Likewise.
* g++.dg/ext/altivec-14.C: Likewise.
* g++.dg/ext/asm13.C (fn1): Likewise.
* g++.dg/ext/builtin-object-size3.C: Likewise.
* g++.dg/ext/has_nothrow_assign_odr.C (main): Likewise.
(S::operator=): Likewise.
* g++.dg/ext/label7.C (f): Likewise.
* g++.dg/ext/label8.C (f): Likewise.
* g++.dg/ext/tmplattr7.C (test): Likewise.
* g++.dg/ext/vector8.C (f): Likewise.
* g++.dg/ext/visibility/anon1.C: Likewise.
* g++.dg/ext/visibility/anon2.C (f): Likewise.
* g++.dg/ext/visibility/namespace1.C (__attribute): Likewise.
* g++.dg/ext/vla16.C (fn1): Likewise.
* g++.dg/goacc/reference.C: Likewise.
* g++.dg/gomp/pr37189.C: Likewise.
* g++.dg/gomp/pr39495-1.C: Likewise.
* g++.dg/gomp/pr39495-2.C: Likewise.
* g++.dg/gomp/pr82054.C: Likewise.
* g++.dg/inherit/covariant10.C (struct c6): Likewise.
(struct c17): Likewise.
* g++.dg/inherit/covariant11.C (struct c1): Likewise.
(struct c3): Likewise.
(struct c11): Likewise.
(struct c15): Likewise.
* g++.dg/inherit/protected1.C (A::operator==): Likewise.
* g++.dg/init/inline1.C (struct A): Likewise.
* g++.dg/init/new18.C: Likewise.
* g++.dg/init/reference2.C (f): Likewise.
* g++.dg/init/reference3.C: Likewise.
* g++.dg/init/switch1.C (f): Likewise.
* g++.dg/ipa/devirt-10.C (struct wxDCBase): Likewise.
* g++.dg/ipa/devirt-13.C (main): Likewise.
* g++.dg/ipa/devirt-14.C (main): Likewise.
* g++.dg/ipa/devirt-15.C (main): Likewise.
* g++.dg/ipa/devirt-16.C (main): Likewise.
* g++.dg/ipa/devirt-17.C (main): Likewise.
* g++.dg/ipa/devirt-18.C (main): Likewise.
* g++.dg/ipa/devirt-19.C: Likewise.
* g++.dg/ipa/devirt-21.C (main): Likewise.
* g++.dg/ipa/devirt-23.C (main): Likewise.
* g++.dg/ipa/devirt-38.C: Likewise.
* g++.dg/ipa/devirt-40.C (A::m_fn1): Likewise.
* g++.dg/ipa/devirt-41.C (main): Likewise.
* g++.dg/ipa/devirt-42.C (main): Likewise.
* g++.dg/ipa/devirt-44.C (struct A): Likewise.
(main): Likewise.
* g++.dg/ipa/devirt-45.C (struct A): Likewise.
(main): Likewise.
* g++.dg/ipa/devirt-48.C (struct B): Likewise.
(struct D): Likewise.
* g++.dg/ipa/devirt-52.C: Likewise.
* g++.dg/ipa/nothrow-1.C (main): Likewise.
* g++.dg/ipa/pr43812.C (LocalSurface::bbox): Likewise.
* g++.dg/ipa/pr44372.C: Likewise.
* g++.dg/ipa/pr45572-1.C (fgetc_unlocked): Likewise.
(putc_unlocked): Likewise.
(getline): Likewise.
(ferror_unlocked): Likewise.
* g++.dg/ipa/pr58371.C: Likewise.
* g++.dg/ipa/pr59176.C: Likewise.
* g++.dg/ipa/pr60640-1.C (class G): Likewise.
* g++.dg/ipa/pr61540.C (struct top): Likewise.
* g++.dg/ipa/pr63470.C (class FTjackSupport): Likewise.
* g++.dg/ipa/pr63587-1.C: Likewise.
* g++.dg/ipa/pr63587-2.C: Likewise.
* g++.dg/ipa/pr63838.C (__attribute__): Likewise.
* g++.dg/ipa/pr63894.C (J::m_fn3): Likewise.
* g++.dg/ipa/pr64068.C (class A): Likewise.
(A::m_fn2): Likewise.
(class C): Likewise.
* g++.dg/ipa/pr64896.C (struct D): Likewise.
* g++.dg/ipa/pr65002.C: Likewise.
* g++.dg/ipa/pr65008.C (__attribute__): Likewise.
* g++.dg/ipa/pr65465.C (struct D): Likewise.
* g++.dg/ipa/pr66896.C (struct A): Likewise.
* g++.dg/ipa/pr68851.C (class G): Likewise.
(C::checkPseudoClass): Likewise.
* g++.dg/ipa/pr78211.C: Likewise.
* g++.dg/ipa/pr79931.C (AttrImpl::insertBefore): Likewise.
* g++.dg/ipa/pure-const-1.C (main): Likewise.
* g++.dg/ipa/pure-const-2.C (main): Likewise.
* g++.dg/ipa/pure-const-3.C (main): Likewise.
* g++.dg/ipa/remref-1.C (main): Likewise.
* g++.dg/ipa/remref-2.C (main): Likewise.
* g++.dg/lookup/builtin2.C (f): Likewise.
* g++.dg/lookup/crash3.C (struct A): Likewise.
(struct B): Likewise.
(crash): Likewise.
* g++.dg/lookup/friend20.C: Likewise.
* g++.dg/lookup/pr80891-5.C (vf2_subgraph_iso): Likewise.
* g++.dg/lookup/struct2.C (A::c): Likewise.
* g++.dg/lto/20080709_0.C (f): Likewise.
* g++.dg/lto/20080907_0.C: Likewise.
* g++.dg/lto/20080915_0.C (struct Baz): Likewise.
* g++.dg/lto/20080916_0.C (g): Likewise.
* g++.dg/lto/20081022_0.C (main): Likewise.
* g++.dg/lto/20081023_0.C (main): Likewise.
* g++.dg/lto/20081118_0.C (foo::method): Likewise.
* g++.dg/lto/20081118_1.C (bar::method): Likewise.
* g++.dg/lto/
20081120-1_0.C: Likewise.
* g++.dg/lto/
20081120-1_1.C: Likewise.
* g++.dg/lto/20081127_1.C (main): Likewise.
* g++.dg/lto/
20081217-2_0.C (struct A): Likewise.
* g++.dg/lto/20090303_0.C: Likewise.
* g++.dg/lto/
20090311-1_0.C: Likewise.
* g++.dg/lto/20090312_0.C: Likewise.
* g++.dg/lto/20090315_0.C (main): Likewise.
* g++.dg/lto/
20091002-1_0.C: Likewise.
* g++.dg/lto/
20091002-2_0.C (class DataArray): Likewise.
* g++.dg/lto/
20091002-3_0.C (class DataArray): Likewise.
* g++.dg/lto/
20091004-1_0.C: Likewise.
* g++.dg/lto/
20091004-2_0.C: Likewise.
* g++.dg/lto/
20091004-3_1.C (All_Torus_Intersections): Likewise.
* g++.dg/lto/
20100721-1_0.C (__gthread_active_p): Likewise.
* g++.dg/lto/
20101010-1_0.C: Likewise.
* g++.dg/lto/
20101010-2_0.C: Likewise.
* g++.dg/lto/pr45679-1_0.C: Likewise.
* g++.dg/lto/pr45679-1_1.C: Likewise.
* g++.dg/lto/pr45679-2_0.C: Likewise.
* g++.dg/lto/pr48042_0.C (B::x): Likewise.
* g++.dg/lto/pr51650-1_0.C (fn): Likewise.
(main): Likewise.
* g++.dg/lto/pr51650-3_0.C (fn): Likewise.
(main): Likewise.
* g++.dg/lto/pr63270_1.C: Likewise.
* g++.dg/lto/pr65193_0.C: Likewise.
* g++.dg/lto/pr65302_0.C: Likewise.
* g++.dg/lto/pr65316_0.C: Likewise.
* g++.dg/lto/pr65475c_0.C: Likewise.
* g++.dg/lto/pr65549_0.C (main): Likewise.
* g++.dg/lto/pr69077_0.C (cWeightedStdDev::netPack): Likewise.
* g++.dg/lto/pr69589_0.C: Likewise.
* g++.dg/opt/combine.C (qvariant_cast): Likewise.
(QScriptDebuggerBackendPrivate::trace): Likewise.
* g++.dg/opt/complex3.C (j): Likewise.
* g++.dg/opt/covariant1.C (struct T): Likewise.
* g++.dg/opt/declone3.C (Item::m_fn1): Likewise.
* g++.dg/opt/dump1.C (__attribute__): Likewise.
* g++.dg/opt/inline15.C (struct C): Likewise.
(fn2): Likewise.
* g++.dg/opt/local1.C (h): Likewise.
* g++.dg/opt/memcpy1.C (csBoxClipper::Clip): Likewise.
* g++.dg/opt/new1.C: Likewise.
* g++.dg/opt/nrv8.C (main): Likewise.
* g++.dg/opt/pr23299.C (struct A): Likewise.
(struct B): Likewise.
(struct C): Likewise.
* g++.dg/opt/pr27826.C (struct Geometry): Likewise.
* g++.dg/opt/pr44919.C (back_inserter): Likewise.
* g++.dg/opt/pr47615.C (main): Likewise.
* g++.dg/opt/pr55329.C (struct A): Likewise.
* g++.dg/opt/pr61456.C (Set): Likewise.
* g++.dg/opt/pr65003.C (D::foo): Likewise.
(F::foo): Likewise.
* g++.dg/opt/pr65554.C: Likewise.
* g++.dg/opt/pr69432.C (struct C): Likewise.
* g++.dg/opt/pr78373.C (struct D): Likewise.
(Traits>::m_fn4): Likewise.
* g++.dg/opt/pr79267.C (struct F): Likewise.
* g++.dg/opt/pr82159-2.C: Likewise.
* g++.dg/other/array3.C (reserve): Likewise.
* g++.dg/other/crash-5.C (f): Likewise.
* g++.dg/other/crash-8.C: Likewise.
* g++.dg/other/error34.C (S): Likewise.
* g++.dg/other/pr22003.C (c3::func): Likewise.
* g++.dg/other/pr24623.C (RefCountPointer): Likewise.
* g++.dg/other/pr29610.C (struct __normal_iterator): Likewise.
(Painter::for_each): Likewise.
(Painter::redraw_window): Likewise.
* g++.dg/other/pr42645-1.C (struct S): Likewise.
* g++.dg/other/pr42645-2.C (foo): Likewise.
(f3): Likewise.
* g++.dg/other/pr52048.C: Likewise.
* g++.dg/other/typedef3.C (XalanCProcessor::getParseOption): Likewise.
* g++.dg/overload/defarg4.C (class foo): Likewise.
(bar::Initialize): Likewise.
* g++.dg/overload/operator5.C (equalIgnoringCase): Likewise.
* g++.dg/overload/ref-conv1.C: Likewise.
* g++.dg/overload/template5.C (test): Likewise.
* g++.dg/parse/crash40.C (class AAA): Likewise.
* g++.dg/parse/crash61.C: Likewise.
* g++.dg/parse/crash67.C: Likewise.
* g++.dg/parse/ctor5.C: Likewise.
* g++.dg/parse/defarg4.C (Foo): Likewise.
* g++.dg/parse/defarg6.C: Likewise.
* g++.dg/parse/error5.C (class Foo): Likewise.
* g++.dg/parse/expr2.C (foo): Likewise.
* g++.dg/parse/friend7.C: Likewise.
* g++.dg/parse/namespace1.C (bar): Likewise.
* g++.dg/parse/namespace9.C (g): Likewise.
* g++.dg/parse/ret-type2.C: Likewise.
* g++.dg/parse/typedef8.C (foo): Likewise.
* g++.dg/pch/static-1.C (LocalStaticTest): Likewise.
(main): Likewise.
* g++.dg/plugin/diagnostic-test-expressions-1.C (test_structure_references): Likewise.
(test_postfix_incdec): Likewise.
(test_sizeof): Likewise.
(test_alignof): Likewise.
(test_prefix_incdec): Likewise.
* g++.dg/plugin/dumb-plugin-test-1.C (func): Likewise.
* g++.dg/plugin/self-assign-test-1.C (func): Likewise.
* g++.dg/plugin/self-assign-test-2.C (func): Likewise.
* g++.dg/plugin/self-assign-test-3.C (func): Likewise.
* g++.dg/pr55513.C (main): Likewise.
* g++.dg/pr55604.C (main): Likewise.
* g++.dg/pr57662.C: Likewise.
* g++.dg/pr58389.C (F::m_fn1): Likewise.
* g++.dg/pr59510.C: Likewise.
* g++.dg/pr67989.C: Likewise.
* g++.dg/pr70590-2.C: Likewise.
* g++.dg/pr70590.C: Likewise.
* g++.dg/pr70965.C (foo): Likewise.
* g++.dg/pr77550.C: Likewise.
* g++.dg/pr80287.C (struct A): Likewise.
* g++.dg/pr80707.C (A::m_fn1): Likewise.
* g++.dg/pr81194.C: Likewise.
* g++.dg/spellcheck-identifiers.C: Likewise.
* g++.dg/tc1/dr152.C: Likewise.
* g++.dg/template/aggr-init1.C (CreateA): Likewise.
* g++.dg/template/anon1.C (struct x): Likewise.
(struct vector): Likewise.
* g++.dg/template/array29.C: Likewise.
* g++.dg/template/array7.C (bar): Likewise.
* g++.dg/template/canon-type-8.C: Likewise.
* g++.dg/template/conv1.C (First::Foo): Likewise.
* g++.dg/template/crash107.C: Likewise.
* g++.dg/template/crash23.C (f): Likewise.
* g++.dg/template/crash8.C (struct bar): Likewise.
* g++.dg/template/defarg4.C (struct A): Likewise.
* g++.dg/template/dependent-expr9.C: Likewise.
* g++.dg/template/error10.C (Btest): Likewise.
* g++.dg/template/friend32.C (f): Likewise.
* g++.dg/template/init6.C (Graph::Inner::get): Likewise.
(main): Likewise.
* g++.dg/template/memfriend7.C (A::h): Likewise.
* g++.dg/template/new10.C (Analyzer::ReadDictionary): Likewise.
* g++.dg/template/nontype12.C (baz): Likewise.
* g++.dg/template/overload12.C (foo2): Likewise.
* g++.dg/template/overload5.C (foo::f): Likewise.
* g++.dg/template/overload8.C (struct A): Likewise.
* g++.dg/template/partial10.C (fn): Likewise.
(main): Likewise.
* g++.dg/template/partial9.C (f): Likewise.
* g++.dg/template/qual1.C (shift_compare): Likewise.
* g++.dg/template/show-template-tree-3.C: Likewise.
* g++.dg/template/sizeof8.C (S<sizeof): Likewise.
* g++.dg/template/sizeof9.C (d): Likewise.
* g++.dg/template/spec6.C: Likewise.
* g++.dg/template/spec7.C (h): Likewise.
* g++.dg/template/typedef8.C: Likewise.
* g++.dg/template/using20.C (f): Likewise.
* g++.dg/template/vla1.C (label): Likewise.
* g++.dg/tm/cgraph_edge.C: Likewise.
* g++.dg/tm/pr46646.C: Likewise.
* g++.dg/tm/pr47554.C (class list): Likewise.
* g++.dg/tm/pr47573.C (getStringHeight): Likewise.
* g++.dg/tm/unsafe1.C (f): Likewise.
* g++.dg/tm/unsafe2.C (g): Likewise.
* g++.dg/torture/pr70971.C: Likewise.
* g++.dg/torture/
20070621-1.C: Likewise.
* g++.dg/torture/
20090329-1.C: Likewise.
* g++.dg/torture/
20141013.C: Likewise.
* g++.dg/torture/pr33134.C (fxsaveGIF): Likewise.
* g++.dg/torture/pr33340.C (new): Likewise.
* g++.dg/torture/pr33627.C (class pf_Frag): Likewise.
* g++.dg/torture/pr34222.C (readFloat): Likewise.
* g++.dg/torture/pr34241.C (test): Likewise.
* g++.dg/torture/pr34641.C: Likewise.
* g++.dg/torture/pr34850.C (OctetString::operator^=): Likewise.
* g++.dg/torture/pr35164-1.C: Likewise.
* g++.dg/torture/pr36745.C: Likewise.
* g++.dg/torture/pr38705.C (S::bar): Likewise.
* g++.dg/torture/pr38811.C (AbcAbcdTracer::TestIsoAbcde): Likewise.
* g++.dg/torture/pr39362.C: Likewise.
* g++.dg/torture/pr39732.C (f): Likewise.
* g++.dg/torture/pr40991.C: Likewise.
* g++.dg/torture/pr41775.C: Likewise.
* g++.dg/torture/pr42183.C: Likewise.
* g++.dg/torture/pr42450.C: Likewise.
* g++.dg/torture/pr42704.C: Likewise.
* g++.dg/torture/pr42760.C (baz): Likewise.
(bar): Likewise.
* g++.dg/torture/pr42773.C (Cell::obscuringCells): Likewise.
* g++.dg/torture/pr42883.C: Likewise.
* g++.dg/torture/pr43905.C (struct Matrix): Likewise.
* g++.dg/torture/pr44148.C: Likewise.
* g++.dg/torture/pr44295.C: Likewise.
* g++.dg/torture/pr44357.C: Likewise.
* g++.dg/torture/pr44813.C: Likewise.
* g++.dg/torture/pr45580.C: Likewise.
* g++.dg/torture/pr45874.C (Mpeg2FrameConstructor::ParsePictureHeader): Likewise.
* g++.dg/torture/pr45877.C: Likewise.
* g++.dg/torture/pr46383.C: Likewise.
* g++.dg/torture/pr46469.C (__attribute__): Likewise.
(identifierByPthreadHandle): Likewise.
* g++.dg/torture/pr47313.C: Likewise.
* g++.dg/torture/pr48271.C: Likewise.
* g++.dg/torture/pr49615.C (Dispatch): Likewise.
(C::f): Likewise.
* g++.dg/torture/pr49770.C (main): Likewise.
* g++.dg/torture/pr49938.C: Likewise.
* g++.dg/torture/pr51436.C: Likewise.
* g++.dg/torture/pr51482.C (anim_track_bez_wvect::tangent): Likewise.
* g++.dg/torture/pr51737.C (id_state::start_file): Likewise.
* g++.dg/torture/pr51959.C: Likewise.
* g++.dg/torture/pr52772.C (class c6): Likewise.
* g++.dg/torture/pr52918-2.C (__cxa_allocate_exception): Likewise.
* g++.dg/torture/pr53011.C: Likewise.
* g++.dg/torture/pr53602.C: Likewise.
* g++.dg/torture/pr53752.C: Likewise.
* g++.dg/torture/pr54838.C: Likewise.
* g++.dg/torture/pr54902.C: Likewise.
* g++.dg/torture/pr56029.C: Likewise.
* g++.dg/torture/pr56768.C (operator!=): Likewise.
* g++.dg/torture/pr57107.C: Likewise.
* g++.dg/torture/pr57140.C: Likewise.
* g++.dg/torture/pr57235.C: Likewise.
* g++.dg/torture/pr58252.C: Likewise.
* g++.dg/torture/pr58555.C: Likewise.
* g++.dg/torture/pr59208.C (get_dbx_doc): Likewise.
* g++.dg/torture/pr60438-1.C (foo): Likewise.
* g++.dg/torture/pr60746.C (Two::run): Likewise.
* g++.dg/torture/pr61554.C: Likewise.
* g++.dg/torture/pr63419.C: Likewise.
* g++.dg/torture/pr63476.C: Likewise.
* g++.dg/torture/pr63512.C (C::m_fn3): Likewise.
* g++.dg/torture/pr64282.C (class H): Likewise.
* g++.dg/torture/pr64378.C (struct top): Likewise.
* g++.dg/torture/pr64565.C: Likewise.
* g++.dg/torture/pr64568-2.C: Likewise.
* g++.dg/torture/pr64669.C (Lex::advance_one_char): Likewise.
* g++.dg/torture/pr64686.C (B::m_fn1): Likewise.
* g++.dg/torture/pr64978.C (B::m_fn2): Likewise.
* g++.dg/torture/pr64995.C (A::m_fn2): Likewise.
* g++.dg/torture/pr65655.C: Likewise.
* g++.dg/torture/pr65851.C: Likewise.
* g++.dg/torture/pr67055.C: Likewise.
* g++.dg/torture/pr67191.C: Likewise.
* g++.dg/torture/pr68852.C: Likewise.
* g++.dg/torture/pr69264.C: Likewise.
* g++.dg/torture/pr77674.C: Likewise.
* g++.dg/torture/pr77947.C (B::m_fn2): Likewise.
* g++.dg/torture/pr78268.C: Likewise.
* g++.dg/torture/pr78507.C: Likewise.
* g++.dg/torture/pr78692.C (F::g): Likewise.
* g++.dg/torture/pr80171.C: Likewise.
* g++.dg/torture/pr82154.C (class f): Likewise.
(f::k): Likewise.
* g++.dg/tree-ssa/copyprop.C: Likewise.
* g++.dg/tree-ssa/pr22444.C: Likewise.
* g++.dg/tree-ssa/pr23948.C (make_scheduler_request): Likewise.
* g++.dg/tree-ssa/pr24172.C (dummy): Likewise.
* g++.dg/tree-ssa/pr24351-3.C: Likewise.
* g++.dg/tree-ssa/pr27283.C: Likewise.
* g++.dg/tree-ssa/pr27291.C: Likewise.
* g++.dg/tree-ssa/pr27548.C: Likewise.
* g++.dg/tree-ssa/pr34355.C (Parse_Float): Likewise.
* g++.dg/tree-ssa/pr42337.C: Likewise.
* g++.dg/tree-ssa/pred-1.C (main): Likewise.
* g++.dg/ubsan/pr65019.C (C::foo): Likewise.
* g++.dg/ubsan/pr65583.C: Likewise.
* g++.dg/vect/pr60836.cc (norm_): Likewise.
* g++.dg/vect/pr68145.cc: Likewise.
* g++.dg/vect/pr70729-nest.cc (my_alloc): Likewise.
* g++.dg/vect/pr70729.cc (my_alloc): Likewise.
* g++.dg/warn/Waddress-3.C: Likewise.
* g++.dg/warn/Wconversion-null-2.C (warn_for___null): Likewise.
* g++.dg/warn/Wnull-conversion-2.C (main): Likewise.
* g++.dg/warn/Wparentheses-10.C: Likewise.
* g++.dg/warn/Wparentheses-11.C: Likewise.
* g++.dg/warn/Wparentheses-12.C: Likewise.
* g++.dg/warn/Wparentheses-25.C: Likewise.
* g++.dg/warn/Wparentheses-6.C: Likewise.
* g++.dg/warn/Wparentheses-7.C: Likewise.
* g++.dg/warn/Wparentheses-8.C: Likewise.
* g++.dg/warn/Wparentheses-9.C: Likewise.
* g++.dg/warn/Wshadow-5.C: Likewise.
* g++.dg/warn/Wtype-limits-Wextra.C (ff): Likewise.
(gg): Likewise.
* g++.dg/warn/Wtype-limits-no.C (ff): Likewise.
(gg): Likewise.
* g++.dg/warn/Wtype-limits.C (ff): Likewise.
(gg): Likewise.
* g++.dg/warn/Wunused-local-typedefs.C: Likewise.
* g++.dg/warn/Wzero-as-null-pointer-constant-5.C: Likewise.
* g++.dg/warn/pmf1.C (a::f): Likewise.
* g++.old-deja/g++.benjamin/p13417.C: Likewise.
* g++.old-deja/g++.brendan/crash24.C (main): Likewise.
* g++.old-deja/g++.ext/constructor.C: Likewise.
* g++.old-deja/g++.ext/namedret1.C (f): Likewise.
* g++.old-deja/g++.ext/namedret3.C: Likewise.
* g++.old-deja/g++.ext/return1.C: Likewise.
* g++.old-deja/g++.jason/anon4.C (main): Likewise.
* g++.old-deja/g++.jason/enum6.C: Likewise.
* g++.old-deja/g++.jason/lineno2.C (main): Likewise.
* g++.old-deja/g++.jason/lineno3.C: Likewise.
* g++.old-deja/g++.jason/lineno4.C: Likewise.
* g++.old-deja/g++.jason/new2.C (main): Likewise.
* g++.old-deja/g++.jason/new4.C (main): Likewise.
* g++.old-deja/g++.jason/shadow1.C (main): Likewise.
* g++.old-deja/g++.jason/tempcons.C (struct A): Likewise.
* g++.old-deja/g++.jason/thunk2.C (main): Likewise.
* g++.old-deja/g++.law/builtin1.C (main): Likewise.
* g++.old-deja/g++.law/enum9.C: Likewise.
* g++.old-deja/g++.law/except3.C: Likewise.
* g++.old-deja/g++.law/init6.C: Likewise.
* g++.old-deja/g++.law/profile1.C (main): Likewise.
* g++.old-deja/g++.law/shadow2.C (main): Likewise.
* g++.old-deja/g++.law/temps4.C (main): Likewise.
* g++.old-deja/g++.mike/bool2.C (main): Likewise.
* g++.old-deja/g++.mike/eh1.C: Likewise.
* g++.old-deja/g++.mike/eh10.C: Likewise.
* g++.old-deja/g++.mike/eh13.C (main): Likewise.
* g++.old-deja/g++.mike/eh16.C: Likewise.
* g++.old-deja/g++.mike/eh17.C: Likewise.
* g++.old-deja/g++.mike/eh2.C: Likewise.
* g++.old-deja/g++.mike/eh23.C: Likewise.
* g++.old-deja/g++.mike/eh24.C: Likewise.
* g++.old-deja/g++.mike/eh25.C: Likewise.
* g++.old-deja/g++.mike/eh26.C: Likewise.
* g++.old-deja/g++.mike/eh27.C: Likewise.
* g++.old-deja/g++.mike/eh28.C: Likewise.
* g++.old-deja/g++.mike/eh29.C: Likewise.
* g++.old-deja/g++.mike/eh30.C: Likewise.
* g++.old-deja/g++.mike/eh31.C: Likewise.
* g++.old-deja/g++.mike/eh35.C: Likewise.
* g++.old-deja/g++.mike/eh36.C: Likewise.
* g++.old-deja/g++.mike/eh37.C: Likewise.
* g++.old-deja/g++.mike/eh38.C: Likewise.
* g++.old-deja/g++.mike/eh39.C: Likewise.
* g++.old-deja/g++.mike/eh40.C: Likewise.
* g++.old-deja/g++.mike/eh47.C: Likewise.
* g++.old-deja/g++.mike/eh50.C: Likewise.
* g++.old-deja/g++.mike/eh51.C: Likewise.
* g++.old-deja/g++.mike/eh7.C: Likewise.
* g++.old-deja/g++.mike/eh8.C: Likewise.
* g++.old-deja/g++.mike/eh9.C: Likewise.
* g++.old-deja/g++.mike/mangle1.C: Likewise.
* g++.old-deja/g++.mike/p5958.C: Likewise.
* g++.old-deja/g++.mike/p6004.C: Likewise.
* g++.old-deja/g++.mike/p700.C: Likewise.
* g++.old-deja/g++.mike/p7912.C: Likewise.
* g++.old-deja/g++.mike/p811.C (main): Likewise.
* g++.old-deja/g++.mike/virt4.C (main): Likewise.
* g++.old-deja/g++.oliva/nameret1.C: Likewise.
* g++.old-deja/g++.oliva/nameret2.C: Likewise.
* g++.old-deja/g++.other/decl1.C (bar): Likewise.
* g++.old-deja/g++.other/expr1.C (struct T): Likewise.
(main): Likewise.
* g++.old-deja/g++.other/inline8.C (main): Likewise.
* g++.old-deja/g++.other/loop1.C: Likewise.
* g++.old-deja/g++.other/syntax1.C (main): Likewise.
* g++.old-deja/g++.pt/repo3.C (main): Likewise.
* g++.old-deja/g++.robertl/eb27.C (main): Likewise.
* g++.old-deja/g++.robertl/eb83.C (main): Likewise.
* gcc.dg/pr44545.c: Likewise.
* obj-c++.dg/comp-types-8.mm: Likewise.
* obj-c++.dg/demangle-3.mm: Likewise.
* obj-c++.dg/super-class-1.mm: Likewise.
From-SVN: r254440
+2017-11-06 Martin Liska <mliska@suse.cz>
+
+ * c-c++-common/Wimplicit-fallthrough-8.c: Return a value for
+ functions with non-void return type, or change type to void, or
+ add -Wno-return-type for test.
+ * c-c++-common/asan/pr63638.c (f): Likewise.
+ * c-c++-common/goacc/parallel-1.c (firstprivate): Likewise.
+ * c-c++-common/gomp/sink-1.c (depend): Likewise.
+ * c-c++-common/missing-symbol.c: Likewise.
+ * c-c++-common/pr36513-2.c (main2): Likewise.
+ * c-c++-common/pr36513.c (main1): Likewise.
+ * c-c++-common/pr49706-2.c: Likewise.
+ * c-c++-common/pr65120.c: Likewise.
+ * c-c++-common/tm/volatile-1.c (f): Likewise.
+ * c-c++-common/vector-1.c (f): Likewise.
+ * c-c++-common/vector-2.c (f): Likewise.
+ * g++.dg/abi/abi-tag14.C (f): Likewise.
+ (g): Likewise.
+ * g++.dg/abi/abi-tag18.C (f): Likewise.
+ * g++.dg/abi/abi-tag18a.C (f): Likewise.
+ * g++.dg/abi/covariant2.C (struct c3): Likewise.
+ (struct c7): Likewise.
+ * g++.dg/abi/covariant3.C (c1::f6): Likewise.
+ * g++.dg/abi/mangle7.C (f1): Likewise.
+ * g++.dg/asan/pr81340.C (class e): Likewise.
+ (e::f): Likewise.
+ * g++.dg/concepts/fn8.C (struct S): Likewise.
+ * g++.dg/concepts/pr65575.C (f): Likewise.
+ * g++.dg/concepts/template-parm11.C (f): Likewise.
+ * g++.dg/conversion/op6.C: Likewise.
+ * g++.dg/cpp0x/Wunused-variable-1.C (foo): Likewise.
+ * g++.dg/cpp0x/access01.C: Likewise.
+ * g++.dg/cpp0x/alignas3.C (class alignas): Likewise.
+ * g++.dg/cpp0x/auto2.C (f): Likewise.
+ (struct A): Likewise.
+ (main): Likewise.
+ * g++.dg/cpp0x/constexpr-array17.C (struct D): Likewise.
+ * g++.dg/cpp0x/constexpr-defarg2.C (a): Likewise.
+ (B::foo): Likewise.
+ (B::bar): Likewise.
+ * g++.dg/cpp0x/constexpr-memfn1.C (struct Y): Likewise.
+ * g++.dg/cpp0x/dc1.C (struct D): Likewise.
+ * g++.dg/cpp0x/dc3.C (struct D): Likewise.
+ * g++.dg/cpp0x/decltype12.C: Likewise.
+ * g++.dg/cpp0x/decltype17.C (main): Likewise.
+ * g++.dg/cpp0x/decltype3.C: Likewise.
+ * g++.dg/cpp0x/decltype41.C (struct C): Likewise.
+ (struct D): Likewise.
+ * g++.dg/cpp0x/defaulted28.C (f): Likewise.
+ * g++.dg/cpp0x/enum_base3.C (struct D): Likewise.
+ * g++.dg/cpp0x/gen-attrs-4.C (five): Likewise.
+ * g++.dg/cpp0x/initlist96.C: Likewise.
+ * g++.dg/cpp0x/lambda/lambda-58566.C (struct A): Likewise.
+ * g++.dg/cpp0x/lambda/lambda-conv10.C: Likewise.
+ * g++.dg/cpp0x/lambda/lambda-conv12.C: Likewise.
+ * g++.dg/cpp0x/lambda/lambda-defarg3.C: Likewise.
+ * g++.dg/cpp0x/lambda/lambda-ice3.C (Klass::dostuff): Likewise.
+ * g++.dg/cpp0x/lambda/lambda-ice5.C (foo): Likewise.
+ * g++.dg/cpp0x/lambda/lambda-nested2.C (f1): Likewise.
+ * g++.dg/cpp0x/lambda/lambda-template12.C (class X): Likewise.
+ * g++.dg/cpp0x/lambda/lambda-template2.C (struct T): Likewise.
+ * g++.dg/cpp0x/lambda/lambda-this12.C (struct A): Likewise.
+ * g++.dg/cpp0x/nolinkage1.C (main): Likewise.
+ * g++.dg/cpp0x/nolinkage1a.cc (dummy): Likewise.
+ * g++.dg/cpp0x/nsdmi-template5.C: Likewise.
+ * g++.dg/cpp0x/parse1.C (B::B): Likewise.
+ * g++.dg/cpp0x/pr34054.C (foo): Likewise.
+ * g++.dg/cpp0x/pr47416.C: Likewise.
+ * g++.dg/cpp0x/pr58781.C: Likewise.
+ * g++.dg/cpp0x/pr70538.C: Likewise.
+ * g++.dg/cpp0x/pr81325.C: Likewise.
+ * g++.dg/cpp0x/range-for13.C (begin): Likewise.
+ (end): Likewise.
+ * g++.dg/cpp0x/range-for14.C (begin): Likewise.
+ (end): Likewise.
+ * g++.dg/cpp0x/rv2n.C (test2_18): Likewise.
+ (test2_28): Likewise.
+ (test2_38): Likewise.
+ (test2_58): Likewise.
+ (test2_68): Likewise.
+ (test2_78): Likewise.
+ * g++.dg/cpp0x/rv3n.C (test3_128): Likewise.
+ * g++.dg/cpp0x/static_assert10.C (foo): Likewise.
+ * g++.dg/cpp0x/static_assert11.C (struct A): Likewise.
+ * g++.dg/cpp0x/static_assert12.C: Likewise.
+ * g++.dg/cpp0x/static_assert13.C: Likewise.
+ * g++.dg/cpp0x/trailing1.C (struct A): Likewise.
+ * g++.dg/cpp0x/trailing5.C (foo): Likewise.
+ (bar): Likewise.
+ * g++.dg/cpp0x/variadic114.C: Likewise.
+ * g++.dg/cpp0x/variadic57.C (Dims...>::foo): Likewise.
+ (bar): Likewise.
+ * g++.dg/cpp0x/variadic65.C: Likewise.
+ * g++.dg/cpp0x/variadic66.C (bind): Likewise.
+ * g++.dg/cpp0x/variadic97.C: Likewise.
+ * g++.dg/cpp0x/variadic98.C (__attribute__): Likewise.
+ * g++.dg/cpp1y/auto-fn11.C: Likewise.
+ * g++.dg/cpp1y/auto-fn29.C: Likewise.
+ * g++.dg/cpp1y/auto-fn38.C: Likewise.
+ * g++.dg/cpp1y/constexpr-return2.C: Likewise.
+ * g++.dg/cpp1y/lambda-init7.C (foo): Likewise.
+ * g++.dg/cpp1y/pr63996.C: Likewise.
+ * g++.dg/cpp1y/pr65202.C: Likewise.
+ * g++.dg/cpp1y/pr66443-cxx14.C (Ok): Likewise.
+ * g++.dg/cpp1y/pr79253.C (struct D): Likewise.
+ * g++.dg/cpp1y/static_assert1.C: Likewise.
+ * g++.dg/cpp1y/static_assert2.C: Likewise.
+ * g++.dg/cpp1y/var-templ44.C: Likewise.
+ * g++.dg/cpp1z/fold6.C (f): Likewise.
+ * g++.dg/cpp1z/inline-var2.C (foo): Likewise.
+ * g++.dg/cpp1z/lambda-this1.C (struct B): Likewise.
+ * g++.dg/cpp1z/static_assert-nomsg.C: Likewise.
+ * g++.dg/debug/dwarf-eh-personality-1.C (foobar): Likewise.
+ * g++.dg/debug/dwarf2/dwarf4-typedef.C (struct B): Likewise.
+ * g++.dg/debug/dwarf2/icf.C: Likewise.
+ * g++.dg/debug/dwarf2/pr61433.C (main): Likewise.
+ * g++.dg/debug/nullptr01.C (g): Likewise.
+ * g++.dg/debug/pr16792.C (foo): Likewise.
+ * g++.dg/debug/pr46241.C (class btCollisionWorld): Likewise.
+ * g++.dg/debug/pr46338.C (struct S): Likewise.
+ * g++.dg/debug/pr47106.C (baz): Likewise.
+ (bar): Likewise.
+ (foo): Likewise.
+ * g++.dg/debug/pr71057.C (fn1): Likewise.
+ * g++.dg/debug/pr71432.C (class CLIParameterType): Likewise.
+ (CLIParameterType::checkSwitched): Likewise.
+ * g++.dg/debug/pr80461.C (struct B): Likewise.
+ * g++.dg/dfp/44473-1.C (bar): Likewise.
+ * g++.dg/dfp/44473-2.C (bar): Likewise.
+ (foo): Likewise.
+ * g++.dg/eh/builtin1.C: Likewise.
+ * g++.dg/eh/builtin2.C: Likewise.
+ * g++.dg/eh/builtin3.C: Likewise.
+ * g++.dg/eh/pr45569.C (j): Likewise.
+ * g++.dg/eh/unwind2.C: Likewise.
+ * g++.dg/expr/bitfield11.C: Likewise.
+ * g++.dg/expr/static_cast7.C (f): Likewise.
+ * g++.dg/ext/altivec-14.C: Likewise.
+ * g++.dg/ext/asm13.C (fn1): Likewise.
+ * g++.dg/ext/builtin-object-size3.C: Likewise.
+ * g++.dg/ext/has_nothrow_assign_odr.C (main): Likewise.
+ (S::operator=): Likewise.
+ * g++.dg/ext/label7.C (f): Likewise.
+ * g++.dg/ext/label8.C (f): Likewise.
+ * g++.dg/ext/tmplattr7.C (test): Likewise.
+ * g++.dg/ext/vector8.C (f): Likewise.
+ * g++.dg/ext/visibility/anon1.C: Likewise.
+ * g++.dg/ext/visibility/anon2.C (f): Likewise.
+ * g++.dg/ext/visibility/namespace1.C (__attribute): Likewise.
+ * g++.dg/ext/vla16.C (fn1): Likewise.
+ * g++.dg/goacc/reference.C: Likewise.
+ * g++.dg/gomp/pr37189.C: Likewise.
+ * g++.dg/gomp/pr39495-1.C: Likewise.
+ * g++.dg/gomp/pr39495-2.C: Likewise.
+ * g++.dg/gomp/pr82054.C: Likewise.
+ * g++.dg/inherit/covariant10.C (struct c6): Likewise.
+ (struct c17): Likewise.
+ * g++.dg/inherit/covariant11.C (struct c1): Likewise.
+ (struct c3): Likewise.
+ (struct c11): Likewise.
+ (struct c15): Likewise.
+ * g++.dg/inherit/protected1.C (A::operator==): Likewise.
+ * g++.dg/init/inline1.C (struct A): Likewise.
+ * g++.dg/init/new18.C: Likewise.
+ * g++.dg/init/reference2.C (f): Likewise.
+ * g++.dg/init/reference3.C: Likewise.
+ * g++.dg/init/switch1.C (f): Likewise.
+ * g++.dg/ipa/devirt-10.C (struct wxDCBase): Likewise.
+ * g++.dg/ipa/devirt-13.C (main): Likewise.
+ * g++.dg/ipa/devirt-14.C (main): Likewise.
+ * g++.dg/ipa/devirt-15.C (main): Likewise.
+ * g++.dg/ipa/devirt-16.C (main): Likewise.
+ * g++.dg/ipa/devirt-17.C (main): Likewise.
+ * g++.dg/ipa/devirt-18.C (main): Likewise.
+ * g++.dg/ipa/devirt-19.C: Likewise.
+ * g++.dg/ipa/devirt-21.C (main): Likewise.
+ * g++.dg/ipa/devirt-23.C (main): Likewise.
+ * g++.dg/ipa/devirt-38.C: Likewise.
+ * g++.dg/ipa/devirt-40.C (A::m_fn1): Likewise.
+ * g++.dg/ipa/devirt-41.C (main): Likewise.
+ * g++.dg/ipa/devirt-42.C (main): Likewise.
+ * g++.dg/ipa/devirt-44.C (struct A): Likewise.
+ (main): Likewise.
+ * g++.dg/ipa/devirt-45.C (struct A): Likewise.
+ (main): Likewise.
+ * g++.dg/ipa/devirt-48.C (struct B): Likewise.
+ (struct D): Likewise.
+ * g++.dg/ipa/devirt-52.C: Likewise.
+ * g++.dg/ipa/nothrow-1.C (main): Likewise.
+ * g++.dg/ipa/pr43812.C (LocalSurface::bbox): Likewise.
+ * g++.dg/ipa/pr44372.C: Likewise.
+ * g++.dg/ipa/pr45572-1.C (fgetc_unlocked): Likewise.
+ (putc_unlocked): Likewise.
+ (getline): Likewise.
+ (ferror_unlocked): Likewise.
+ * g++.dg/ipa/pr58371.C: Likewise.
+ * g++.dg/ipa/pr59176.C: Likewise.
+ * g++.dg/ipa/pr60640-1.C (class G): Likewise.
+ * g++.dg/ipa/pr61540.C (struct top): Likewise.
+ * g++.dg/ipa/pr63470.C (class FTjackSupport): Likewise.
+ * g++.dg/ipa/pr63587-1.C: Likewise.
+ * g++.dg/ipa/pr63587-2.C: Likewise.
+ * g++.dg/ipa/pr63838.C (__attribute__): Likewise.
+ * g++.dg/ipa/pr63894.C (J::m_fn3): Likewise.
+ * g++.dg/ipa/pr64068.C (class A): Likewise.
+ (A::m_fn2): Likewise.
+ (class C): Likewise.
+ * g++.dg/ipa/pr64896.C (struct D): Likewise.
+ * g++.dg/ipa/pr65002.C: Likewise.
+ * g++.dg/ipa/pr65008.C (__attribute__): Likewise.
+ * g++.dg/ipa/pr65465.C (struct D): Likewise.
+ * g++.dg/ipa/pr66896.C (struct A): Likewise.
+ * g++.dg/ipa/pr68851.C (class G): Likewise.
+ (C::checkPseudoClass): Likewise.
+ * g++.dg/ipa/pr78211.C: Likewise.
+ * g++.dg/ipa/pr79931.C (AttrImpl::insertBefore): Likewise.
+ * g++.dg/ipa/pure-const-1.C (main): Likewise.
+ * g++.dg/ipa/pure-const-2.C (main): Likewise.
+ * g++.dg/ipa/pure-const-3.C (main): Likewise.
+ * g++.dg/ipa/remref-1.C (main): Likewise.
+ * g++.dg/ipa/remref-2.C (main): Likewise.
+ * g++.dg/lookup/builtin2.C (f): Likewise.
+ * g++.dg/lookup/crash3.C (struct A): Likewise.
+ (struct B): Likewise.
+ (crash): Likewise.
+ * g++.dg/lookup/friend20.C: Likewise.
+ * g++.dg/lookup/pr80891-5.C (vf2_subgraph_iso): Likewise.
+ * g++.dg/lookup/struct2.C (A::c): Likewise.
+ * g++.dg/lto/20080709_0.C (f): Likewise.
+ * g++.dg/lto/20080907_0.C: Likewise.
+ * g++.dg/lto/20080915_0.C (struct Baz): Likewise.
+ * g++.dg/lto/20080916_0.C (g): Likewise.
+ * g++.dg/lto/20081022_0.C (main): Likewise.
+ * g++.dg/lto/20081023_0.C (main): Likewise.
+ * g++.dg/lto/20081118_0.C (foo::method): Likewise.
+ * g++.dg/lto/20081118_1.C (bar::method): Likewise.
+ * g++.dg/lto/20081120-1_0.C: Likewise.
+ * g++.dg/lto/20081120-1_1.C: Likewise.
+ * g++.dg/lto/20081127_1.C (main): Likewise.
+ * g++.dg/lto/20081217-2_0.C (struct A): Likewise.
+ * g++.dg/lto/20090303_0.C: Likewise.
+ * g++.dg/lto/20090311-1_0.C: Likewise.
+ * g++.dg/lto/20090312_0.C: Likewise.
+ * g++.dg/lto/20090315_0.C (main): Likewise.
+ * g++.dg/lto/20091002-1_0.C: Likewise.
+ * g++.dg/lto/20091002-2_0.C (class DataArray): Likewise.
+ * g++.dg/lto/20091002-3_0.C (class DataArray): Likewise.
+ * g++.dg/lto/20091004-1_0.C: Likewise.
+ * g++.dg/lto/20091004-2_0.C: Likewise.
+ * g++.dg/lto/20091004-3_1.C (All_Torus_Intersections): Likewise.
+ * g++.dg/lto/20100721-1_0.C (__gthread_active_p): Likewise.
+ * g++.dg/lto/20101010-1_0.C: Likewise.
+ * g++.dg/lto/20101010-2_0.C: Likewise.
+ * g++.dg/lto/pr45679-1_0.C: Likewise.
+ * g++.dg/lto/pr45679-1_1.C: Likewise.
+ * g++.dg/lto/pr45679-2_0.C: Likewise.
+ * g++.dg/lto/pr48042_0.C (B::x): Likewise.
+ * g++.dg/lto/pr51650-1_0.C (fn): Likewise.
+ (main): Likewise.
+ * g++.dg/lto/pr51650-3_0.C (fn): Likewise.
+ (main): Likewise.
+ * g++.dg/lto/pr63270_1.C: Likewise.
+ * g++.dg/lto/pr65193_0.C: Likewise.
+ * g++.dg/lto/pr65302_0.C: Likewise.
+ * g++.dg/lto/pr65316_0.C: Likewise.
+ * g++.dg/lto/pr65475c_0.C: Likewise.
+ * g++.dg/lto/pr65549_0.C (main): Likewise.
+ * g++.dg/lto/pr69077_0.C (cWeightedStdDev::netPack): Likewise.
+ * g++.dg/lto/pr69589_0.C: Likewise.
+ * g++.dg/opt/combine.C (qvariant_cast): Likewise.
+ (QScriptDebuggerBackendPrivate::trace): Likewise.
+ * g++.dg/opt/complex3.C (j): Likewise.
+ * g++.dg/opt/covariant1.C (struct T): Likewise.
+ * g++.dg/opt/declone3.C (Item::m_fn1): Likewise.
+ * g++.dg/opt/dump1.C (__attribute__): Likewise.
+ * g++.dg/opt/inline15.C (struct C): Likewise.
+ (fn2): Likewise.
+ * g++.dg/opt/local1.C (h): Likewise.
+ * g++.dg/opt/memcpy1.C (csBoxClipper::Clip): Likewise.
+ * g++.dg/opt/new1.C: Likewise.
+ * g++.dg/opt/nrv8.C (main): Likewise.
+ * g++.dg/opt/pr23299.C (struct A): Likewise.
+ (struct B): Likewise.
+ (struct C): Likewise.
+ * g++.dg/opt/pr27826.C (struct Geometry): Likewise.
+ * g++.dg/opt/pr44919.C (back_inserter): Likewise.
+ * g++.dg/opt/pr47615.C (main): Likewise.
+ * g++.dg/opt/pr55329.C (struct A): Likewise.
+ * g++.dg/opt/pr61456.C (Set): Likewise.
+ * g++.dg/opt/pr65003.C (D::foo): Likewise.
+ (F::foo): Likewise.
+ * g++.dg/opt/pr65554.C: Likewise.
+ * g++.dg/opt/pr69432.C (struct C): Likewise.
+ * g++.dg/opt/pr78373.C (struct D): Likewise.
+ (Traits>::m_fn4): Likewise.
+ * g++.dg/opt/pr79267.C (struct F): Likewise.
+ * g++.dg/opt/pr82159-2.C: Likewise.
+ * g++.dg/other/array3.C (reserve): Likewise.
+ * g++.dg/other/crash-5.C (f): Likewise.
+ * g++.dg/other/crash-8.C: Likewise.
+ * g++.dg/other/error34.C (S): Likewise.
+ * g++.dg/other/pr22003.C (c3::func): Likewise.
+ * g++.dg/other/pr24623.C (RefCountPointer): Likewise.
+ * g++.dg/other/pr29610.C (struct __normal_iterator): Likewise.
+ (Painter::for_each): Likewise.
+ (Painter::redraw_window): Likewise.
+ * g++.dg/other/pr42645-1.C (struct S): Likewise.
+ * g++.dg/other/pr42645-2.C (foo): Likewise.
+ (f3): Likewise.
+ * g++.dg/other/pr52048.C: Likewise.
+ * g++.dg/other/typedef3.C (XalanCProcessor::getParseOption): Likewise.
+ * g++.dg/overload/defarg4.C (class foo): Likewise.
+ (bar::Initialize): Likewise.
+ * g++.dg/overload/operator5.C (equalIgnoringCase): Likewise.
+ * g++.dg/overload/ref-conv1.C: Likewise.
+ * g++.dg/overload/template5.C (test): Likewise.
+ * g++.dg/parse/crash40.C (class AAA): Likewise.
+ * g++.dg/parse/crash61.C: Likewise.
+ * g++.dg/parse/crash67.C: Likewise.
+ * g++.dg/parse/ctor5.C: Likewise.
+ * g++.dg/parse/defarg4.C (Foo): Likewise.
+ * g++.dg/parse/defarg6.C: Likewise.
+ * g++.dg/parse/error5.C (class Foo): Likewise.
+ * g++.dg/parse/expr2.C (foo): Likewise.
+ * g++.dg/parse/friend7.C: Likewise.
+ * g++.dg/parse/namespace1.C (bar): Likewise.
+ * g++.dg/parse/namespace9.C (g): Likewise.
+ * g++.dg/parse/ret-type2.C: Likewise.
+ * g++.dg/parse/typedef8.C (foo): Likewise.
+ * g++.dg/pch/static-1.C (LocalStaticTest): Likewise.
+ (main): Likewise.
+ * g++.dg/plugin/diagnostic-test-expressions-1.C (test_structure_references): Likewise.
+ (test_postfix_incdec): Likewise.
+ (test_sizeof): Likewise.
+ (test_alignof): Likewise.
+ (test_prefix_incdec): Likewise.
+ * g++.dg/plugin/dumb-plugin-test-1.C (func): Likewise.
+ * g++.dg/plugin/self-assign-test-1.C (func): Likewise.
+ * g++.dg/plugin/self-assign-test-2.C (func): Likewise.
+ * g++.dg/plugin/self-assign-test-3.C (func): Likewise.
+ * g++.dg/pr55513.C (main): Likewise.
+ * g++.dg/pr55604.C (main): Likewise.
+ * g++.dg/pr57662.C: Likewise.
+ * g++.dg/pr58389.C (F::m_fn1): Likewise.
+ * g++.dg/pr59510.C: Likewise.
+ * g++.dg/pr67989.C: Likewise.
+ * g++.dg/pr70590-2.C: Likewise.
+ * g++.dg/pr70590.C: Likewise.
+ * g++.dg/pr70965.C (foo): Likewise.
+ * g++.dg/pr77550.C: Likewise.
+ * g++.dg/pr80287.C (struct A): Likewise.
+ * g++.dg/pr80707.C (A::m_fn1): Likewise.
+ * g++.dg/pr81194.C: Likewise.
+ * g++.dg/spellcheck-identifiers.C: Likewise.
+ * g++.dg/tc1/dr152.C: Likewise.
+ * g++.dg/template/aggr-init1.C (CreateA): Likewise.
+ * g++.dg/template/anon1.C (struct x): Likewise.
+ (struct vector): Likewise.
+ * g++.dg/template/array29.C: Likewise.
+ * g++.dg/template/array7.C (bar): Likewise.
+ * g++.dg/template/canon-type-8.C: Likewise.
+ * g++.dg/template/conv1.C (First::Foo): Likewise.
+ * g++.dg/template/crash107.C: Likewise.
+ * g++.dg/template/crash23.C (f): Likewise.
+ * g++.dg/template/crash8.C (struct bar): Likewise.
+ * g++.dg/template/defarg4.C (struct A): Likewise.
+ * g++.dg/template/dependent-expr9.C: Likewise.
+ * g++.dg/template/error10.C (Btest): Likewise.
+ * g++.dg/template/friend32.C (f): Likewise.
+ * g++.dg/template/init6.C (Graph::Inner::get): Likewise.
+ (main): Likewise.
+ * g++.dg/template/memfriend7.C (A::h): Likewise.
+ * g++.dg/template/new10.C (Analyzer::ReadDictionary): Likewise.
+ * g++.dg/template/nontype12.C (baz): Likewise.
+ * g++.dg/template/overload12.C (foo2): Likewise.
+ * g++.dg/template/overload5.C (foo::f): Likewise.
+ * g++.dg/template/overload8.C (struct A): Likewise.
+ * g++.dg/template/partial10.C (fn): Likewise.
+ (main): Likewise.
+ * g++.dg/template/partial9.C (f): Likewise.
+ * g++.dg/template/qual1.C (shift_compare): Likewise.
+ * g++.dg/template/show-template-tree-3.C: Likewise.
+ * g++.dg/template/sizeof8.C (S<sizeof): Likewise.
+ * g++.dg/template/sizeof9.C (d): Likewise.
+ * g++.dg/template/spec6.C: Likewise.
+ * g++.dg/template/spec7.C (h): Likewise.
+ * g++.dg/template/typedef8.C: Likewise.
+ * g++.dg/template/using20.C (f): Likewise.
+ * g++.dg/template/vla1.C (label): Likewise.
+ * g++.dg/tm/cgraph_edge.C: Likewise.
+ * g++.dg/tm/pr46646.C: Likewise.
+ * g++.dg/tm/pr47554.C (class list): Likewise.
+ * g++.dg/tm/pr47573.C (getStringHeight): Likewise.
+ * g++.dg/tm/unsafe1.C (f): Likewise.
+ * g++.dg/tm/unsafe2.C (g): Likewise.
+ * g++.dg/torture/pr70971.C: Likewise.
+ * g++.dg/torture/20070621-1.C: Likewise.
+ * g++.dg/torture/20090329-1.C: Likewise.
+ * g++.dg/torture/20141013.C: Likewise.
+ * g++.dg/torture/pr33134.C (fxsaveGIF): Likewise.
+ * g++.dg/torture/pr33340.C (new): Likewise.
+ * g++.dg/torture/pr33627.C (class pf_Frag): Likewise.
+ * g++.dg/torture/pr34222.C (readFloat): Likewise.
+ * g++.dg/torture/pr34241.C (test): Likewise.
+ * g++.dg/torture/pr34641.C: Likewise.
+ * g++.dg/torture/pr34850.C (OctetString::operator^=): Likewise.
+ * g++.dg/torture/pr35164-1.C: Likewise.
+ * g++.dg/torture/pr36745.C: Likewise.
+ * g++.dg/torture/pr38705.C (S::bar): Likewise.
+ * g++.dg/torture/pr38811.C (AbcAbcdTracer::TestIsoAbcde): Likewise.
+ * g++.dg/torture/pr39362.C: Likewise.
+ * g++.dg/torture/pr39732.C (f): Likewise.
+ * g++.dg/torture/pr40991.C: Likewise.
+ * g++.dg/torture/pr41775.C: Likewise.
+ * g++.dg/torture/pr42183.C: Likewise.
+ * g++.dg/torture/pr42450.C: Likewise.
+ * g++.dg/torture/pr42704.C: Likewise.
+ * g++.dg/torture/pr42760.C (baz): Likewise.
+ (bar): Likewise.
+ * g++.dg/torture/pr42773.C (Cell::obscuringCells): Likewise.
+ * g++.dg/torture/pr42883.C: Likewise.
+ * g++.dg/torture/pr43905.C (struct Matrix): Likewise.
+ * g++.dg/torture/pr44148.C: Likewise.
+ * g++.dg/torture/pr44295.C: Likewise.
+ * g++.dg/torture/pr44357.C: Likewise.
+ * g++.dg/torture/pr44813.C: Likewise.
+ * g++.dg/torture/pr45580.C: Likewise.
+ * g++.dg/torture/pr45874.C (Mpeg2FrameConstructor::ParsePictureHeader): Likewise.
+ * g++.dg/torture/pr45877.C: Likewise.
+ * g++.dg/torture/pr46383.C: Likewise.
+ * g++.dg/torture/pr46469.C (__attribute__): Likewise.
+ (identifierByPthreadHandle): Likewise.
+ * g++.dg/torture/pr47313.C: Likewise.
+ * g++.dg/torture/pr48271.C: Likewise.
+ * g++.dg/torture/pr49615.C (Dispatch): Likewise.
+ (C::f): Likewise.
+ * g++.dg/torture/pr49770.C (main): Likewise.
+ * g++.dg/torture/pr49938.C: Likewise.
+ * g++.dg/torture/pr51436.C: Likewise.
+ * g++.dg/torture/pr51482.C (anim_track_bez_wvect::tangent): Likewise.
+ * g++.dg/torture/pr51737.C (id_state::start_file): Likewise.
+ * g++.dg/torture/pr51959.C: Likewise.
+ * g++.dg/torture/pr52772.C (class c6): Likewise.
+ * g++.dg/torture/pr52918-2.C (__cxa_allocate_exception): Likewise.
+ * g++.dg/torture/pr53011.C: Likewise.
+ * g++.dg/torture/pr53602.C: Likewise.
+ * g++.dg/torture/pr53752.C: Likewise.
+ * g++.dg/torture/pr54838.C: Likewise.
+ * g++.dg/torture/pr54902.C: Likewise.
+ * g++.dg/torture/pr56029.C: Likewise.
+ * g++.dg/torture/pr56768.C (operator!=): Likewise.
+ * g++.dg/torture/pr57107.C: Likewise.
+ * g++.dg/torture/pr57140.C: Likewise.
+ * g++.dg/torture/pr57235.C: Likewise.
+ * g++.dg/torture/pr58252.C: Likewise.
+ * g++.dg/torture/pr58555.C: Likewise.
+ * g++.dg/torture/pr59208.C (get_dbx_doc): Likewise.
+ * g++.dg/torture/pr60438-1.C (foo): Likewise.
+ * g++.dg/torture/pr60746.C (Two::run): Likewise.
+ * g++.dg/torture/pr61554.C: Likewise.
+ * g++.dg/torture/pr63419.C: Likewise.
+ * g++.dg/torture/pr63476.C: Likewise.
+ * g++.dg/torture/pr63512.C (C::m_fn3): Likewise.
+ * g++.dg/torture/pr64282.C (class H): Likewise.
+ * g++.dg/torture/pr64378.C (struct top): Likewise.
+ * g++.dg/torture/pr64565.C: Likewise.
+ * g++.dg/torture/pr64568-2.C: Likewise.
+ * g++.dg/torture/pr64669.C (Lex::advance_one_char): Likewise.
+ * g++.dg/torture/pr64686.C (B::m_fn1): Likewise.
+ * g++.dg/torture/pr64978.C (B::m_fn2): Likewise.
+ * g++.dg/torture/pr64995.C (A::m_fn2): Likewise.
+ * g++.dg/torture/pr65655.C: Likewise.
+ * g++.dg/torture/pr65851.C: Likewise.
+ * g++.dg/torture/pr67055.C: Likewise.
+ * g++.dg/torture/pr67191.C: Likewise.
+ * g++.dg/torture/pr68852.C: Likewise.
+ * g++.dg/torture/pr69264.C: Likewise.
+ * g++.dg/torture/pr77674.C: Likewise.
+ * g++.dg/torture/pr77947.C (B::m_fn2): Likewise.
+ * g++.dg/torture/pr78268.C: Likewise.
+ * g++.dg/torture/pr78507.C: Likewise.
+ * g++.dg/torture/pr78692.C (F::g): Likewise.
+ * g++.dg/torture/pr80171.C: Likewise.
+ * g++.dg/torture/pr82154.C (class f): Likewise.
+ (f::k): Likewise.
+ * g++.dg/tree-ssa/copyprop.C: Likewise.
+ * g++.dg/tree-ssa/pr22444.C: Likewise.
+ * g++.dg/tree-ssa/pr23948.C (make_scheduler_request): Likewise.
+ * g++.dg/tree-ssa/pr24172.C (dummy): Likewise.
+ * g++.dg/tree-ssa/pr24351-3.C: Likewise.
+ * g++.dg/tree-ssa/pr27283.C: Likewise.
+ * g++.dg/tree-ssa/pr27291.C: Likewise.
+ * g++.dg/tree-ssa/pr27548.C: Likewise.
+ * g++.dg/tree-ssa/pr34355.C (Parse_Float): Likewise.
+ * g++.dg/tree-ssa/pr42337.C: Likewise.
+ * g++.dg/tree-ssa/pred-1.C (main): Likewise.
+ * g++.dg/ubsan/pr65019.C (C::foo): Likewise.
+ * g++.dg/ubsan/pr65583.C: Likewise.
+ * g++.dg/vect/pr60836.cc (norm_): Likewise.
+ * g++.dg/vect/pr68145.cc: Likewise.
+ * g++.dg/vect/pr70729-nest.cc (my_alloc): Likewise.
+ * g++.dg/vect/pr70729.cc (my_alloc): Likewise.
+ * g++.dg/warn/Waddress-3.C: Likewise.
+ * g++.dg/warn/Wconversion-null-2.C (warn_for___null): Likewise.
+ * g++.dg/warn/Wnull-conversion-2.C (main): Likewise.
+ * g++.dg/warn/Wparentheses-10.C: Likewise.
+ * g++.dg/warn/Wparentheses-11.C: Likewise.
+ * g++.dg/warn/Wparentheses-12.C: Likewise.
+ * g++.dg/warn/Wparentheses-25.C: Likewise.
+ * g++.dg/warn/Wparentheses-6.C: Likewise.
+ * g++.dg/warn/Wparentheses-7.C: Likewise.
+ * g++.dg/warn/Wparentheses-8.C: Likewise.
+ * g++.dg/warn/Wparentheses-9.C: Likewise.
+ * g++.dg/warn/Wshadow-5.C: Likewise.
+ * g++.dg/warn/Wtype-limits-Wextra.C (ff): Likewise.
+ (gg): Likewise.
+ * g++.dg/warn/Wtype-limits-no.C (ff): Likewise.
+ (gg): Likewise.
+ * g++.dg/warn/Wtype-limits.C (ff): Likewise.
+ (gg): Likewise.
+ * g++.dg/warn/Wunused-local-typedefs.C: Likewise.
+ * g++.dg/warn/Wzero-as-null-pointer-constant-5.C: Likewise.
+ * g++.dg/warn/pmf1.C (a::f): Likewise.
+ * g++.old-deja/g++.benjamin/p13417.C: Likewise.
+ * g++.old-deja/g++.brendan/crash24.C (main): Likewise.
+ * g++.old-deja/g++.ext/constructor.C: Likewise.
+ * g++.old-deja/g++.ext/namedret1.C (f): Likewise.
+ * g++.old-deja/g++.ext/namedret3.C: Likewise.
+ * g++.old-deja/g++.ext/return1.C: Likewise.
+ * g++.old-deja/g++.jason/anon4.C (main): Likewise.
+ * g++.old-deja/g++.jason/enum6.C: Likewise.
+ * g++.old-deja/g++.jason/lineno2.C (main): Likewise.
+ * g++.old-deja/g++.jason/lineno3.C: Likewise.
+ * g++.old-deja/g++.jason/lineno4.C: Likewise.
+ * g++.old-deja/g++.jason/new2.C (main): Likewise.
+ * g++.old-deja/g++.jason/new4.C (main): Likewise.
+ * g++.old-deja/g++.jason/shadow1.C (main): Likewise.
+ * g++.old-deja/g++.jason/tempcons.C (struct A): Likewise.
+ * g++.old-deja/g++.jason/thunk2.C (main): Likewise.
+ * g++.old-deja/g++.law/builtin1.C (main): Likewise.
+ * g++.old-deja/g++.law/enum9.C: Likewise.
+ * g++.old-deja/g++.law/except3.C: Likewise.
+ * g++.old-deja/g++.law/init6.C: Likewise.
+ * g++.old-deja/g++.law/profile1.C (main): Likewise.
+ * g++.old-deja/g++.law/shadow2.C (main): Likewise.
+ * g++.old-deja/g++.law/temps4.C (main): Likewise.
+ * g++.old-deja/g++.mike/bool2.C (main): Likewise.
+ * g++.old-deja/g++.mike/eh1.C: Likewise.
+ * g++.old-deja/g++.mike/eh10.C: Likewise.
+ * g++.old-deja/g++.mike/eh13.C (main): Likewise.
+ * g++.old-deja/g++.mike/eh16.C: Likewise.
+ * g++.old-deja/g++.mike/eh17.C: Likewise.
+ * g++.old-deja/g++.mike/eh2.C: Likewise.
+ * g++.old-deja/g++.mike/eh23.C: Likewise.
+ * g++.old-deja/g++.mike/eh24.C: Likewise.
+ * g++.old-deja/g++.mike/eh25.C: Likewise.
+ * g++.old-deja/g++.mike/eh26.C: Likewise.
+ * g++.old-deja/g++.mike/eh27.C: Likewise.
+ * g++.old-deja/g++.mike/eh28.C: Likewise.
+ * g++.old-deja/g++.mike/eh29.C: Likewise.
+ * g++.old-deja/g++.mike/eh30.C: Likewise.
+ * g++.old-deja/g++.mike/eh31.C: Likewise.
+ * g++.old-deja/g++.mike/eh35.C: Likewise.
+ * g++.old-deja/g++.mike/eh36.C: Likewise.
+ * g++.old-deja/g++.mike/eh37.C: Likewise.
+ * g++.old-deja/g++.mike/eh38.C: Likewise.
+ * g++.old-deja/g++.mike/eh39.C: Likewise.
+ * g++.old-deja/g++.mike/eh40.C: Likewise.
+ * g++.old-deja/g++.mike/eh47.C: Likewise.
+ * g++.old-deja/g++.mike/eh50.C: Likewise.
+ * g++.old-deja/g++.mike/eh51.C: Likewise.
+ * g++.old-deja/g++.mike/eh7.C: Likewise.
+ * g++.old-deja/g++.mike/eh8.C: Likewise.
+ * g++.old-deja/g++.mike/eh9.C: Likewise.
+ * g++.old-deja/g++.mike/mangle1.C: Likewise.
+ * g++.old-deja/g++.mike/p5958.C: Likewise.
+ * g++.old-deja/g++.mike/p6004.C: Likewise.
+ * g++.old-deja/g++.mike/p700.C: Likewise.
+ * g++.old-deja/g++.mike/p7912.C: Likewise.
+ * g++.old-deja/g++.mike/p811.C (main): Likewise.
+ * g++.old-deja/g++.mike/virt4.C (main): Likewise.
+ * g++.old-deja/g++.oliva/nameret1.C: Likewise.
+ * g++.old-deja/g++.oliva/nameret2.C: Likewise.
+ * g++.old-deja/g++.other/decl1.C (bar): Likewise.
+ * g++.old-deja/g++.other/expr1.C (struct T): Likewise.
+ (main): Likewise.
+ * g++.old-deja/g++.other/inline8.C (main): Likewise.
+ * g++.old-deja/g++.other/loop1.C: Likewise.
+ * g++.old-deja/g++.other/syntax1.C (main): Likewise.
+ * g++.old-deja/g++.pt/repo3.C (main): Likewise.
+ * g++.old-deja/g++.robertl/eb27.C (main): Likewise.
+ * g++.old-deja/g++.robertl/eb83.C (main): Likewise.
+ * gcc.dg/pr44545.c: Likewise.
+ * obj-c++.dg/comp-types-8.mm: Likewise.
+ * obj-c++.dg/demangle-3.mm: Likewise.
+ * obj-c++.dg/super-class-1.mm: Likewise.
+
2017-11-06 Martin Liska <mliska@suse.cz>
* c-c++-common/dfp/call-by-value.c (foo32): Return a default
extern void grace (int);
-int
+void
fn1 (int i)
{
switch (i)
done:;
}
-int
+void
fn2 (int i)
{
switch (i)
done:;
}
-int
+void
fn3 (int i)
{
switch (i)
done:;
}
-int
+void
fn4 (int i)
{
switch (i)
done:;
}
-int
+void
fn5 (int i)
{
switch (i)
done:;
}
-int
+void
fn6 (int i)
{
switch (i)
struct S s[6];
-int f(struct S *p)
+void f(struct S *p)
{
memcpy(p, &s[2], sizeof(*p));
memcpy(p, &s[1], sizeof(*p));
#pragma acc parallel firstprivate (a, b)
;
+
+ return 0;
}
bar (i, j, 0);
#pragma omp ordered depend(source)
}
+
+ return 0;
}
-/* { dg-options "-fdiagnostics-show-caret" } */
+/* { dg-options "-fdiagnostics-show-caret -Wno-return-type" } */
extern int foo (void);
extern int bar (void);
{
char *s, t;
strchr (s, t);
+ return 0;
}
&& (t) == '\0'
? (char *) __rawmemchr (s, t)
: __builtin_strchr (s, t)));
+
+ return 0;
}
bool r;
-int
+void
same (int a, int b)
{
r = !a == !b;
bool r;
-int
+void
f1 (int a)
{
r = !a == 0;
r = !a != 1; /* { dg-warning "logical not is only applied to the left hand side of comparison" } */
}
-int
+void
f2 (int a)
{
r = !a > 0; /* { dg-warning "logical not is only applied to the left hand side of comparison" } */
volatile int * p = 0;
__attribute ((transaction_safe))
-int f() {
+void f() {
int x = 0; // ok: not volatile
p = &x; // ok: the pointer is not volatile
int i = *p; // { dg-error "volatile" "read through volatile glvalue" }
vector float a;
vector int a1;
-int f(void)
+void f(void)
{
a = ~a; /* { dg-error "" } */
a1 = ~a1;
vector float b;
vector int b1;
-int f(void)
+void f(void)
{
a = a | b; /* { dg-error "" } */
a = a & b; /* { dg-error "" } */
A a; // { dg-warning "\"cxx11\"" }
// { dg-final { scan-assembler "_Z1fB5cxx11v" } }
-A f() {} // { dg-warning "\"cxx11\"" }
+A f() { return a; } // { dg-warning "\"cxx11\"" }
namespace {
A a2;
- A f2() {}
+ A f2() { return a2; }
struct B: A {};
}
// { dg-final { scan-assembler "_Z1fPN7__cxx111AE" } }
-A f(A*) {}
+A f(A*) { return a; }
// { dg-final { scan-assembler "_Z1gIN7__cxx111AEET_v" } }
template <class T> T g() { }
-template <> A g<A>() { }
+template <> A g<A>() { return a; }
// { dg-final { scan-assembler "_Z1vIN7__cxx111AEE" { target c++14 } } }
#if __cplusplus >= 201402L
struct T {
A2 g() { // { dg-warning "mangled name" }
static X x; // { dg-warning "mangled name" }
+ return A2();
}
};
T().g();
+ return A1();
}
int main() {
f();
struct T {
A2 g() {
static X x;
+ return A2();
}
};
T().g();
+ return A1();
}
int main() {
f();
struct c3 : virtual c1
{
- virtual c1* f6() {}
+ virtual c1* f6() { return 0; }
int i;
};
struct c7 : c3
{
- virtual c3* f6() {}
+ virtual c3* f6() { return 0; }
};
struct c24 : virtual c7
virtual c18* f6();
};
-c0 *c1::f6 () {}
+c0 *c1::f6 () { return 0; }
void c5::foo () {}
void c10::foo () {}
void c18::bar () {}
/* { dg-do compile } */
typedef void *const t1[2];
-float const f1(t1 (&)[79], ...) {}
+float const f1(t1 (&)[79], ...) { return 0.0f; }
/* { dg-final { scan-assembler _Z2f1RA79_A2_KPvz } } */
a(char *) : c(0, d) {}
};
class e {
- int f(const int &, const int &, const int &, bool, bool, bool, int, bool);
+ void f(const int &, const int &, const int &, bool, bool, bool, int, bool);
};
class g {
public:
static g *h();
void i(a, void *);
};
-int e::f(const int &, const int &, const int &, bool j, bool, bool, int, bool) {
+void e::f(const int &, const int &, const int &, bool j, bool, bool, int, bool) {
g::h()->i("", &j);
}
void (*p3)(int) = &f; // { dg-error "no matches" }
struct S {
- template<Class T> int f(T) { }
+ template<Class T> int f(T) { return 0; }
};
auto p4 = &S::template f<int>; // { dg-error "no matches" }
int (&p)() requires true; // { dg-error "" }
int g(int (*)() requires true); // { dg-error "" }
-int f() { }
+int f() { return 0; }
int
main()
void getTable(const ColSpec&...)
{}
-int f()
+void f()
{
getTable(7, 'a'); // { dg-error "cannot call" }
};
template<class T> class smart_pointer {
public:
- operator T* () const { }
- operator bool () const { }
- operator bool () { }
+ operator T* () const { return 0; }
+ operator bool () const { return true; }
+ operator bool () { return true; }
};
class Context { };
typedef smart_pointer<Context> ContextP;
foo ()
{
C {} (1, 1L, 1LL, 1.0);
+ return 0;
}
template<int N>
{
T p;
public:
- template <class U> auto f() -> decltype(+p) { }
+ template <class U> auto f() -> decltype(+p) { return p; }
};
int main()
class CompoundStmt;
class alignas(8) Stmt {
Stmt *Children[1];
- CompoundStmt *getBlock() const { cast<CompoundStmt>(Children[0]); }
+ CompoundStmt *getBlock() const { cast<CompoundStmt>(Children[0]); return 0; }
};
#include <typeinfo>
extern "C" void abort();
-int f() {}
+int f() { return 0; }
struct A
{
int i;
- int f() {}
+ int f() { return 0; }
A operator+(A a) { return a; }
};
}
auto j = 42, k = 24;
+ return 0;
}
template <typename _ForwardIterator, typename _Size>
static _ForwardIterator __uninit_default_n(_ForwardIterator p1, _Size) {
_Construct(p1);
+ return _ForwardIterator();
}
};
template <typename _ForwardIterator, typename _Size>
A baz (const char *, A = C ());
+C c;
+A a (c);
+
A
B::foo ()
{
catch (...)
{
}
+
+ return a;
}
A
B::bar ()
{
baz ("bar");
+ return a;
}
struct Y
{
Y() { }
- constexpr Y f(Y y) {} // { dg-error "constexpr" }
- static constexpr Y g(Y y) {} // { dg-error "constexpr" }
+ constexpr Y f(Y y) { return y; } // { dg-error "constexpr" }
+ static constexpr Y g(Y y) { return y; } // { dg-error "constexpr" }
};
D (int _i) : C(), i(_i) { }
D () : D(-1) { }
virtual ~D() { }
- virtual int f () { }
+ virtual int f () { return 0; }
};
void f_D () { C* c = new D(); }
D (int _i) : C(), i(_i) { }
D () : D(-1) { }
virtual ~D() { }
- virtual int f () { }
+ virtual int f () { return 0; }
};
void f_D () { D<X>* d = new D<X>(); }
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
+
template<typename T, typename U>
struct is_same
{
// PR c++/36628
// { dg-do run { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
#include <typeinfo>
#include <string.h>
return 2;
if (strcmp (typeid(h).name(), "FOivE") != 0)
return 3;
+
+ return 0;
}
int a;
enum B_enum { b };
decltype(a) c;
- decltype(a) foo() { }
+ decltype(a) foo() { return 0; }
decltype(b) enums_are_in_scope() { return b; } // ok
};
template <class T>
struct C
{
- template <class U> decltype (a.i) f() { } // #1
- template <class U> decltype (b.i) f() { } // #2
+ template <class U> decltype (a.i) f() { return 0; } // #1
+ template <class U> decltype (b.i) f() { return 1; } // #2
};
template <class T>
struct D
{
- template <class U> decltype (A::j) f() { } // #1
- template <class U> decltype (B::j) f() { } // #2
+ template <class U> decltype (A::j) f() { return 2; } // #1
+ template <class U> decltype (B::j) f() { return 3; } // #2
};
int main()
A(A const&) = default; // { dg-message "private" }
};
-int f(...) { }
+int f(...) { return 0; }
int main() {
A a;
f(a); // { dg-error "this context" }
};
struct D : C
{
- B foo () const { B a; a.foo (d); }
+ B foo () const { B a; a.foo (d); return B(); }
H d;
};
struct F : C
int
five(void)
[[noreturn]] // { dg-warning "ignored" }
-{}
+{ return 0; }
[[noreturn]]
void
// PR c++/66515
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
#include <initializer_list>
int foo()
{
[this]{ return foo; }; // { dg-error "invalid use of member function|cannot convert" }
+ return 0;
}
};
// PR c++/69889
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
template <typename F> struct Tag {
static void fp() { f()(0); }
// PR c++/80767
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
template <typename T, typename U = T> struct A { using type = U; };
template <typename F, typename... G> struct B : B<F>::type, B<G...>::type {
template<typename T> struct C
{
- static T test(function f = [](int i){return i;}) { }
+ static T test(function f = [](int i){return i;}) { return T(); }
};
int main()
if (local & 1) { return true; } // { dg-error "not captured|non-static" }
return false;
};
+
+ return true;
}
int main()
template<int> int foo()
{
[] (void i) { return 0; } (0); // { dg-error "incomplete|invalid|no match" }
+ return 0;
}
void bar()
};
struct s1 {
int f;
- int work(int n) {
+ void work(int n) {
int m = n*n;
int j = 40;
auto m3 = [this,m]{
[&a]{
typename remove_reference < decltype (a) >::type t;
};
+ return true;
}
};
template class X< int >;
foo (S<N> *p)
{
S<N> u;
- [&u] ()->bool {} ();
+ [&u] ()->bool { return true; } ();
}
};
struct A
{
- int f() {}
+ int f() { return 0; }
int i;
void foo()
A<B> a;
}
-int main() { g(); f(0); }
+int main() { g(); f(0); return 0; }
A<B> a;
}
-int dummy() { g(); f(0); }
+int dummy() { g(); f(0); return 0; }
{
template<typename, typename...> struct B1
{
- template<typename> int foo1() {}
+ template<typename> int foo1() { return 0; }
int i1 = foo1<int>();
};
{
template<typename, typename> struct B2
{
- template<typename> int foo2() {}
+ template<typename> int foo2() { return 1; }
int i2 = foo2<int>();
};
{
template<typename> struct B3
{
- template<typename> int foo3() {}
+ template<typename> int foo3() { return 2; }
int i3 = foo3<int>();
};
// { dg-do compile { target c++11 } }
typedef int B; // { dg-message "" }
-B::B() {} // { dg-error "" }
+B::B() { return 0; } // { dg-error "" }
// PR c++/34054
// { dg-do compile { target c++11 } }
-template<typename... T> T foo() {} // { dg-error "not expanded|T" }
+template<typename... T> T foo() { return T(); } // { dg-error "not expanded|T" }
// PR c++/47416
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
namespace std
{
return 0;
}
-int
+void
f()
{
using a = decltype(U"\x1181"_s);
template <typename> class C : B {
using base_type = B;
base_type::base_type; // { dg-warning "access declarations" }
- PathComponentPiece m_fn1() {}
+ PathComponentPiece m_fn1() { return PathComponentPiece(); }
};
};
template <typename ResultT, typename ArgT> struct J {
void operator()();
- ResultT operator()(ArgT) {}
+ ResultT operator()(ArgT) { return ResultT(); }
};
struct K {
int AllowBind;
template<typename T> int *begin(T &t)
{
T::fail;
+ return 0;
}
template<typename T> int *end(T &t)
{
T::fail;
+ return 0;
}
struct container1
template<typename T> int *begin(T &t)
{
T::fail;
+ return 0;
}
template<typename T> int *end(T &t)
{
T::fail;
+ return 0;
}
//Test for defaults
sink_2_18(ca); // { dg-error "" }
sink_2_18(va); // { dg-error "" }
sink_2_18(cva); // { dg-error "" }
+ return 0;
}
two sink_2_23(const A&);
const volatile A cva = a; // { dg-error "deleted" }
sink_2_28(va); // { dg-error "" }
sink_2_28(cva); // { dg-error "" }
+ return 0;
}
three sink_2_35(volatile A&);
three sink_2_38(volatile A&);
eight sink_2_38(const volatile A&&);
-int test2_38()
+void test2_38()
{
A a;
const A ca = a; // { dg-error "deleted" }
five sink_2_58( A&&);
eight sink_2_58(const volatile A&&);
-int test2_58()
+void test2_58()
{
A a;
const A ca = a; // { dg-error "deleted" }
sink_2_68(ca); // { dg-error "" }
sink_2_68(va); // { dg-error "" }
sink_2_68(cva); // { dg-error "" }
+ return 0;
}
seven sink_2_78(volatile A&&);
sink_2_78(ca); // { dg-error "" }
sink_2_78(va); // { dg-error "" }
sink_2_78(cva); // { dg-error "" }
+ return 0;
}
int main()
sink_3_128(va); // { dg-error "" }
sink_3_128(cva); // { dg-error "" }
+ return 0;
}
one sink_3_134( A&);
{
int i;
static_assert(foo(i), "Error"); // { dg-error "non-constant condition|not usable|non-constexpr" }
+ return true;
}
template<typename T> bool foo(T)
{
static_assert(foo(0), "Error"); // { dg-error "non-constant condition|constant expression" }
+ return true;
}
};
};
template<typename T>
- T
+ void
float_thing(T __x)
{
static_assert(is_float<T>::value, ""); // { dg-error "static assertion failed" }
};
template<typename T>
- T
+ void
float_thing(T __x)
{
static_assert(is_float<T>::value, ""); // { dg-error "static assertion failed" }
template <class T>
struct A
{
- T f() {}
+ T f() { return T(); }
template <class U>
- T g() {}
+ T g() { return T(); }
template <class V>
struct B
{
// { dg-do compile { target c++11 } }
struct A {};
-auto foo() -> struct A {}
+auto foo() -> struct A { return A(); }
enum B {};
-auto bar() -> enum B {}
+auto bar() -> enum B { return B(); }
auto baz() -> struct C {} {} // { dg-error "" }
// PR c++/49785
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
template <typename, typename ...> struct B { };
template <typename> class A;
};
template<typename T, int... Dims>
-int array<T, Dims...>::foo() { }
+int array<T, Dims...>::foo() { return 0; }
template<typename T>
-int array<T, 0>::bar() { }
+int array<T, 0>::bar() { return 0; }
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
+
struct unused;
template<typename T1 = unused, typename T2 = unused, typename T3 = unused,
typename T4 = unused, typename T5 = unused, typename T6 = unused>
// { dg-do compile { target c++11 } }
template<typename Result, typename Functor, typename... ArgTypes>
-Result bind(Functor, ArgTypes...) { }
+Result bind(Functor, ArgTypes...) { return Result(); }
void f()
{
template<typename _Functor, typename _Arg>
_Bind<_Functor(_Arg)>
- bind(_Functor, _Arg) { }
+ bind(_Functor, _Arg) { return _Bind<_Functor(_Arg)>(); }
struct State
{
// PR c++/42358
// { dg-do assemble { target c++11 } }
+// { dg-additional-options "-Wno-return-type" }
typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef __SIZE_TYPE__ size_t;
};
template<typename _Tp> struct less : public binary_function<_Tp, _Tp, bool> {
bool operator()(const _Tp& __x, const _Tp& __y) const {
+ return true;
}
};
template<typename _Pair> struct _Select1st : public unary_function<_Pair, typename _Pair::first_type> {
// { dg-do compile { target c++14 } }
+// { dg-additional-options "-Wno-return-type" }
auto f() { return; } // OK, return type is void
auto* g() { return; } // { dg-error "no value" }
template <typename T>
bool f4(T const& v){
f2(v);
+ return true;
}
}
// PR c++/80145
// { dg-do compile { target c++14 } }
+// { dg-additional-options "-Wno-return-type" }
auto* foo() { } // { dg-error "no return statements" }
auto* foo();
// { dg-do compile { target c++14 } }
+// { dg-additional-options "-Wno-return-type" }
constexpr int f (int i)
{
// PR c++/59349
// { dg-do compile { target c++14 } }
-int foo () {
+void foo () {
[bar()]{}; // { dg-error "empty initializer" }
}
// { dg-do compile { target c++14 } }
+// { dg-additional-options "-Wno-return-type" }
constexpr int
foo (int i)
// // PR c++/65202
// { dg-do compile { target c++14 } }
+// { dg-additional-options "-Wno-return-type" }
template <typename T> struct is_move_constructible;
template <typename T> struct is_move_assignable;
bool Ok (C &c)
{
+ return true;
}
int main ()
baz () { bar<F, B<>>; }
template <bool, bool, bool> struct F
{
- static B<> baz () { foo<E<0, 0, 0>> (0, 0); }
+ static B<> baz () { foo<E<0, 0, 0>> (0, 0); return B<>(); }
};
};
{
static_assert(is_float<T>::value, ""); // { dg-error "static assertion failed" }
static_assert(is_float<T>::value); // { dg-error "static assertion failed" }
+ return T();
}
int
{
static_assert(is_float<T>::value, ""); // { dg-error "static assertion failed" }
static_assert(is_float<T>::value); // { dg-error "static assertion failed" }
+ return T();
}
int
// PR c++/67161
// { dg-do compile { target c++14 } }
+// { dg-additional-options "-Wno-return-type" }
template <typename _Tp> struct integral_constant {
static constexpr _Tp value = 0;
int i;
template <int... Is>
-int f()
+void f()
{
(i ? i : Is + ...); // { dg-error "" }
(i + Is + ...); // { dg-error "" }
{
inline int var32; // { dg-error "'inline' specifier invalid for variable 'var32' declared at block scope" }
static inline int var33; // { dg-error "'inline' specifier invalid for variable 'var33' declared at block scope" }
+ return 0;
}
template <typename A, typename B, typename C>
struct Y
double foo () {
return [this]{ return [*this] { return b; }; }()(); // { dg-error "'*this' capture only available with" "" { target c++14_down } }
}
- double bar () {
+ void bar () {
auto c = []{ return [*this] { return b; }; }; // { dg-error "'this' was not captured for this lambda function" }
} // { dg-error "invalid use of non-static data member 'B::b'" "" { target *-*-* } .-1 }
}; // { dg-error "'*this' capture only available with" "" { target c++14_down } .-2 }
};
template<typename T>
- T
+ void
float_thing(T __x)
{
static_assert(is_float<T>::value, ""); // { dg-error "static assertion failed" }
return 0;
}
-int foobar (void)
+void foobar (void)
{
}
struct B : public A {
template <typename A>
- bool foo(A x[2]) { }
+ bool foo(A x[2]) { return true; }
};
template <typename T>
int j;
};
-int
+void
test1(A* a)
{
a->work();
}
-int
+void
test2(A* a)
{
if (a->p())
// { dg-do compile { target c++11 } }
// { dg-xfail-if "" { powerpc-ibm-aix* } }
// { dg-options "-O -fcompare-debug -fno-inline -fno-ipa-pure-const -fipa-sra" }
+// { dg-additional-options "-Wno-return-type" }
template <class T>
struct A
int main()
{
k( C(), A<int>(), D() );
+ return 0;
}
template <> nullptr_t g(A<nullptr_t>)
{
nullptr_t local;
+ return nullptr;
}
// { dg-final { scan-assembler "_Z1fDn" } }
// { dg-final { scan-assembler "_Z1gI1AIDnEEDnT_" } }
// { dg-do compile }
struct S { S(); };
-int foo (S b, double j) { };
+int foo (S b, double j) { return 0; };
int main ()
{
class btIDebugDraw;
class btCollisionWorld {
- virtual btIDebugDraw* getDebugDrawer() { };
+ virtual btIDebugDraw* getDebugDrawer() { return 0; };
static void rayTestSingle();
};
class btTriangleCallback {
{
int f ()
{
+ return 0;
}
};
baz (S s1, S)
{
while (f (&s1));
+
+ return true;
}
inline bool
bar (S s1, S s2, S)
{
- baz (s1, s2);
+ return baz (s1, s2);
}
S getS ();
bool
foo ()
{
- bar (getS (), getS (), getS ());
+ return bar (getS (), getS (), getS ());
}
};
template <typename> struct D {};
C<int> a;
-D<B<int>> fn1() { fn1, a; }
+D<B<int>> fn1() { fn1, a; return D<B<int>>(); }
public:
size_type size ()const noexcept
{
+ return 0;
}
const _CharT *data () const noexcept
{
+ return 0;
}
};
}
{
const std::string & getSwitchOption (unsigned int i) const
{
- } unsigned int getSwitchOptionCount () const
+ static std::string a;
+ return a;
+ }
+ unsigned int getSwitchOptionCount () const
{
- } int checkSwitched (const std::string & value) const;
+ return 0;
+ }
+ int checkSwitched (const std::string & value) const;
};
int
int contains = false;
for (unsigned int i = 0; !contains && i < getSwitchOptionCount () ;)
contains = getSwitchOption (i) == value;
+
+ return 0;
}
struct B
{
template <typename T, typename U>
- static bool foo (U T::*) {}
+ static bool foo (U T::*) { return true; }
};
template <typename, typename> class J;
template <typename T, typename U, typename V, typename... W>
/* { dg-do assemble } */
+/* { dg-additional-options "-Wno-return-type" } */
/* Minimized from the testcase in PR c++/44473; mangling of decimal types
did not include CV qualifiers. */
bar ()
{
vec.push_back (std::decimal::decimal32 (0));
+ return true;
}
}
}
-int bar (const std::decimal::decimal64 & x) { }
+int bar (const std::decimal::decimal64 & x) { return 0; }
int foo ()
{
std::decimal::decimal64 x(0);
- bar (x);
+ return bar (x);
}
// { dg-final { scan-assembler "_Z3barRKDd:" } }
extern void callme (void) throw();
-int
+void
foo (int i)
{
try {
}
}
-int
+void
bar (int i)
{
try {
extern void callme (void) throw();
-int
+void
foo (int i)
{
try {
}
}
-int
+void
bar (int i)
{
try {
extern void callme (void) throw();
-int
+void
bar (int i)
{
try {
void
i (_Complex float);
-float j ()
+void j ()
{
_Complex float x = 0;
try
typedef _CharT char_type;
char_type * _M_in_beg;
char_type *eback () { return _M_in_beg; }
- char_type *gptr () {}
+ char_type *gptr () { return 0; }
};
}
namespace std
unsigned int a : 1;
};
-bool
+void
foo (A *x, A *y)
{
x->a = y ? y->a : true;
// Regression test for bug 39415 (and its duplicate 44916).
struct S {};
struct T : S {};
-int f(const T*) {}
+int f(const T*) { return 0; }
void f(T*);
int main() {
S* s(0);
void f (__attribute__((altivec (vector__))) signed int * a,
__attribute__((altivec (vector__))) signed int * const b);
-int
+void
foo (void)
{
__attribute__((altivec (vector__))) signed int a[1], b[1];
// PR c++/69257
-int fn1() {
+void fn1() {
struct S *x;
__asm ( "": :"" (*x)); // { dg-error "incomplete" }
}
#define MEMCPY(d,s,l) __builtin___memcpy_chk (d, s, l, __builtin_object_size (d, 0)) // { dg-warning "writing" }
-int
+void
foo ()
{
int *p = new int;
baz (p, q);
}
-int
+void
bar ()
{
int *p = new int;
// PR c++/36870
// { dg-do run }
+
+
#include <cassert>
struct S { const S& operator= (const S&); };
int main ()
{
assert (__has_nothrow_assign (S) == f ());
+ return 0;
}
-const S& S::operator= (const S&) { }
+const S& S::operator= (const S&a) { return a; }
bool f () { return __has_nothrow_assign (S); }
// PR c++/32121
// { dg-do compile }
-int f (void)
+void f (void)
{
a:;
__label__ a; // { dg-error "not at the beginning" }
// PR c++/32121
// { dg-do compile }
-int f (void)
+void f (void)
{
__label__ a, b;
__label__ c;
int i = bar(List<int>());
-bool test(const List<int> &) {}
+bool test(const List<int> &) { return true; }
vector float b;
vector int b1;
-int f(void)
+void f(void)
{
a = a | b; /* { dg-error "" } */
a = a & b; /* { dg-error "" } */
namespace
{
- int f() { }
+ int f() { return 0; }
}
struct A { };
}
-A f () { }
+A f () { return A(); }
namespace foo __attribute ((visibility ("hidden")))
{
- int f() { }
+ int f() { return 0; }
void g();
template <typename T> void t() { }
class A
const int a = fn1();
int b[a];
int c = *(&b[0] + sizeof(0));
+
+ return 0;
}
-int
+void
test1 (int &ref)
{
#pragma acc kernels copy (ref)
}
}
-int
+void
test2 (int &ref)
{
int b;
{
}
-int
+void
foo ()
{
T t;
#define INT_MAX __INT_MAX__
#define UINT_MAX (2U * __INT_MAX__ + 1)
-int
+void
foo (void)
{
int i;
;
}
-int
+void
bar (void)
{
int i;
#define INT_MAX __INT_MAX__
#define UINT_MAX (2U * __INT_MAX__ + 1)
-int
+void
foo (void)
{
int i;
{
#pragma omp parallel
;
+
+ return true;
}
struct c5 {};
struct c6 : virtual c1 {
- virtual c5* f33() const {}
+ virtual c5* f33() const { return 0; }
};
struct c13 : virtual c5 { };
struct c17 : virtual c6
{
- virtual c13* f33() const {}
+ virtual c13* f33() const { return 0; }
};
struct c2 { int i; };
struct c1 {
- virtual c2& f8() {}
+ virtual c2& f8() { static c2 a; return a; }
};
struct c3 : c1, c2 {
- virtual c2& f8() {}
+ virtual c2& f8() { static c2 a; return a; }
};
struct c11 : public c1 {
- virtual c3& f8() {}
+ virtual c3& f8() { static c3 a; return a; }
};
struct c15 : virtual c3 {
- virtual c2& f8() {}
+ virtual c2& f8() { static c3 a; return a; }
};
struct c18 : virtual c11 {
{
A<X> a;
a.m_class->m_object;
+ return 0;
}
};
template <class T> class A
A<T>::operator== (const X &) const
{
B<X>::check;
+ return true;
}
class C
{
struct A {
~A();
- A f(A) { }
+ A f(A) { return A(); }
};
// { dg-do compile }
// { dg-options "-O2 -fstrict-aliasing" }
+// { dg-additional-options "-Wno-return-type" }
// This caused an ICE during placement new.
// We should we able to diagnostic this without instantiating the template
template <int a1>
-int f()
+void f()
{
typedef int& T;
T a = T(); // { dg-error "value-initialization of reference" }
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
// This code used to be accepted but it is invalid as there is no
// value initialization of a reference type.
// PR c++/36695
-int f(int c)
+void f(int c)
{
switch (c)
{
struct wxDCBase
{
wxDCBase ();
- virtual int GetLayoutDirection() const{}
+ virtual int GetLayoutDirection() const{ return 0; }
virtual void SetLayoutDirection(int){}
};
struct wxWindowDC : public wxDCBase {};
};
}
class A a, *b=&a;
-main()
+
+int main()
{
return b->foo();
}
};
}
class B a, *b=&a;
-main()
+
+int main()
{
if (0)
{
{
b->foo();
}
-main()
+int main()
{
m();
}
};
}
class B *b;
-main()
+int main()
{
int c;
if (c)
}
class B *b;
void get_me_lost (void *);
-main()
+int main()
{
int c;
if (c)
};
}
class B *b;
-main()
+int main()
{
if (0)
{
a type change. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-cp" } */
+/* { dg-additional-options "-Wno-return-type" } */
+
struct A {
void operator==(const A &);
};
B *C::m_fn1(int *) { abort (); }
-main()
+int main()
{
class C c;
}
B *C::m_fn1(int *) { abort (); }
-main()
+int main()
{
class C c;
}
{
public:
A (int);
- SnmpSyntax *m_fn1 () const {}
+ SnmpSyntax *m_fn1 () const { return 0; }
SnmpSyntax &operator=(const SnmpSyntax &);
};
int a;
UnicodeString &m_fn1 (UnicodeString &, int &p2, UErrorCode &) const;
};
UnicodeString::UnicodeString () {}
+
+UnicodeString g;
+
UnicodeString &
A::m_fn1 (UnicodeString &, int &p2, UErrorCode &) const
{
UnicodeString a[2];
+ return g;
}
/* { dg-final { scan-tree-dump-not "\\n OBJ_TYPE_REF" "fre3" } } */
__builtin_abort ();
}
-main()
+int main()
{
struct B a;
dostuff (&a);
return static_cast<B*>(this)->barbar();
}
-main()
+int main()
{
struct B b;
struct A *a = &b;
/* { dg-options "-O3 -fno-ipa-cp -fdump-ipa-inline-details -fno-early-inlining" } */
struct A {
virtual int foo () {return 1;}
- int wrapfoo () {foo();}
+ void wrapfoo () {foo();}
A() {wrapfoo();}
};
struct B:A {virtual int foo () {return 2;}};
__builtin_abort ();
}
-main()
+int main()
{
struct B a;
dostuff (&a);
/* { dg-options "-O3 -fno-ipa-cp -fdump-ipa-inline-details -fno-early-inlining" } */
struct A {
virtual int foo () {return 1;}
- int wrapfoo () {foo();}
+ void wrapfoo () {foo();}
A() {wrapfoo();}
};
inline void* operator new(__SIZE_TYPE__ s, void* buf) throw() {
test2(a);
}
-main()
+int main()
{
struct B a;
dostuff (&a);
};
struct B:A {
virtual int foo(){return 2;}
- int callfoo(){foo();}
+ void callfoo(){foo();}
};
struct C:A {
virtual int foo(){return 3;}
};
struct D:B {
virtual int foo(){return 4;}
- int callfoo(){foo();}
+ void callfoo(){foo();}
};
static void
test (struct A *a)
// PR middle-end/77259
// { dg-do compile { target c++11 } }
// { dg-options "-O2" }
+// { dg-additional-options "-Wno-return-type" }
template <typename, typename = int> class A;
template <typename, typename> struct A
{
return *ptr == *ptr;
}
-main()
+int main()
{
int aa;
ptr = &barvar;
class LocalSurface : public Surface {
virtual BBox bbox () const;
};
-BBox LocalSurface::bbox () const { }
+BBox LocalSurface::bbox () const { return BBox(); }
/* { dg-do compile } */
/* { dg-options "-O -fipa-cp -fipa-cp-clone" } */
+/* { dg-additional-options "-Wno-return-type" } */
template < typename > class S3;
extern __inline __attribute__ ((__gnu_inline__)) int
fgetc_unlocked (FILE *__fp)
{
+ return 0;
}
extern __inline __attribute__ ((__gnu_inline__)) int
putc_unlocked (int __c, FILE *__stream)
{
+ return 0;
}
extern __inline __attribute__ ((__gnu_inline__)) __ssize_t
getline (char **__lineptr, size_t *__n, FILE *__stream)
{
+ return 0;
}
extern __inline __attribute__ ((__gnu_inline__)) int
ferror_unlocked (FILE *__stream) throw ()
{
+ return 0;
}
}
typedef struct
/* { dg-do compile } */
/* { dg-options "-O2" } */
+/* { dg-additional-options "-Wno-return-type" } */
typedef int size_t;
unsigned long C::m_fn1() {
CellHierarchy:
m_fn2().m_fn1();
+ return 0;
}
unsigned long C::m_fn3() {
CellHierarchy:
m_fn2().m_fn1();
+ return 0;
}
};
class G : public D
{
- unsigned m_fn1 (bool) const {}
+ unsigned m_fn1 (bool) const { return 0; }
};
class F : A
{
};
struct top {
- virtual int topf() {}
+ virtual int topf() { return 0; }
};
struct intermediate: top {
const char **
m_fn2 (int)
{
+ return 0;
}
int _inited;
int *_jackClient;
const key_type &p1)
{
_M_impl._M_key_compare (p1, 0);
+ return A<int>();
}
template <typename _Key, typename _Val, typename _KeyOfValue,
typename _Compare, typename _Alloc>
H &)
{
_M_get_insert_unique_pos (0);
+ return A<int>();
}
template <typename _Key, typename _Val, typename _KeyOfValue,
typename _Compare, typename _Alloc>
H p1, _Args &&...)
{
_M_get_insert_hint_unique_pos (p1);
+ return 0;
}
namespace {
struct L;
// PR ipa/63587
// { dg-do compile { target c++11 } }
// { dg-options "-O2" }
+// { dg-additional-options "-Wno-return-type" }
namespace boost {
class basic_cstring
{
FunctionObj f;
f ();
+ return 0;
}
};
template <typename FunctionObj> struct get_function_obj_invoker0
fn ();
}
-__attribute__((noinline, noclone)) int
+__attribute__((noinline, noclone)) void
baz (int x)
{
S s;
p1->m_fn1 (0, D (0, D::BOX, 0));
K *d = new (0) K (0, m_fn2 (0));
m_fn3 (d);
+ return true;
}
typedef int PROV_ENUMALGS_EX, PCCRYPT_OID_INFO;
class A {
- int m_fn2();
+ void m_fn2();
virtual bool m_fn1(PCCRYPT_OID_INFO);
};
int fn1();
void fn2();
-int A::m_fn2() { m_fn1(0); }
+void A::m_fn2() { m_fn1(0); }
bool fn3() {
for (;;) {
B() { fn3(); }
};
class C : A {
- bool m_fn1(PCCRYPT_OID_INFO) { m_fn3(); }
+ bool m_fn1(PCCRYPT_OID_INFO) { m_fn3(); return true; }
int isSupportedByProvider_algId;
PROV_ENUMALGS_EX isSupportedByProvider_outEnumAlgs;
PROV_ENUMALGS_EX isSupportedByProvider_enumAlgs;
struct A { int a, b; };
struct B { A c; int d; };
struct C { virtual B fn1 () const; };
-struct D { B fn2 () const; int fn3 () const; C *fn4 () const; };
+struct D { B fn2 () const; void fn3 () const; C *fn4 () const; };
-int
+void
D::fn3 () const
{
fn4 ()->fn1 ();
class A {
public:
A(int, int);
- virtual int m_fn1(float) const;
+ virtual void m_fn1(float) const;
};
class B : A {
public:
B(int, int p2) : A(entity, p2) {}
- int m_fn1(float p1) const { long b(floor(p1)); }
+ void m_fn1(float p1) const { long b(floor(p1)); }
int entity;
};
virtual void foo () {}
};
-static inline int __attribute__ ((always_inline)) call_foo (A *a)
+static inline void __attribute__ ((always_inline)) call_foo (A *a)
{
a->foo ();
}
struct A {};
struct B { virtual A foo () const; };
struct C { A foo () const; };
-struct D : virtual B { A foo () const {} };
+struct D : virtual B { A foo () const { return A(); } };
struct F : D { virtual int bar () const; };
int F::bar () const { return 0; }
A C::foo () const { return A (); }
int *a;
A ();
~A () { a3 (); }
- int a1 (int * p) { if (!p) f3 (); f2 (p); }
+ void a1 (int * p) { if (!p) f3 (); f2 (p); }
void a3 () { if (*a) a1 (a); }
};
};
class A {
public:
- virtual bool isFormControlElement() const {}
+ virtual bool isFormControlElement() const { return false; }
};
class C {
struct D {
virtual bool isFormControlElement() const;
};
class G : A, F {
- bool isFormControlElement() const {}
+ bool isFormControlElement() const { return true; }
};
bool C::checkPseudoClass(const D &p1, int &) const {
A &a = *p1.element;
a.isFormControlElement();
- a.isFormControlElement() || a.isFormControlElement();
+ return a.isFormControlElement() || a.isFormControlElement();
}
// PR lto/78211
// { dg-do compile { target { lto && c++11 } } }
// { dg-options "-fcompare-debug -fno-printf-return-value -flto -fno-use-linker-plugin -O3" }
+// { dg-additional-options "-Wno-return-type" }
namespace std {
typedef __SIZE_TYPE__ size_t;
reference operator*() const noexcept { }
};
template<typename _IteratorL, typename _IteratorR, typename _Container>
- inline bool operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept { }
+ inline bool operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept { return true; }
}
namespace std {
template<typename _CharT> struct char_traits;
NodeImpl *oldparent = newChild->getParentNode();
oldparent->removeChild(newChild);
this->getOwnerDocument()->getRanges();
+ return 0;
}
{
return *ptr == *ptr;
}
-main()
+int main()
{
int aa;
ptr = &barvar;
{
return a();
}
-main()
+int main()
{
int aa;
ptr = &barvar;
return a(p+1);
return 1;
}
-main()
+int main()
{
int aa;
ptr = &barvar;
a = new A();
}
-main()
+int main()
{
allocate_a();
for (int i=0; i<10000;i++)
a = new A();
}
-main()
+int main()
{
allocate_a();
for (int i=0; i<10000;i++)
using ::toupper;
}
-int f () {
+void f () {
std::toupper((signed int)'a');
}
typedef __SIZE_TYPE__ size_t;
-struct A { void *operator new(size_t s){} }; // { dg-message "operator new" }
-struct B { void *operator new(size_t s){} }; // { dg-message "operator new" }
+struct A { void *operator new(size_t s){ return 0; } }; // { dg-message "operator new" }
+struct B { void *operator new(size_t s){ return 0; } }; // { dg-message "operator new" }
struct C : A,B {};
-int crash()
+void crash()
{
C *c=new C(); // { dg-error "ambiguous" }
}
a<>
d ()
{
+ return a<>();
}
};
IndexMapSmall, IndexMapLarge, VertexOrderSmall,
EdgeEquivalencePredicate, VertexEquivalencePredicate) {
vf2_subgraph_morphism<subgraph_iso>(0, 0, p3, 0, 0, 0, 0, 0);
+ return 0;
}
}
using namespace boost;
namespace A {
int c(struct c*req);
}
-int A::c(struct c*req) {}
+int A::c(struct c*req) { return 0; }
};
int f(Init *a) {
+ return 0;
}
int main(void){
// { dg-lto-do assemble }
+// { dg-lto-options "-Wno-return-type" }
+
struct Foo { void func (); }; Foo & bar () { } struct Baz { Baz (Baz &); };
Baz dummy() { bar().func(); }
// { dg-lto-do assemble }
+// { dg-lto-options "-Wno-return-type" }
+
struct Foo {
static const int dummy;
}
struct Baz {
- Bar& operator*() {}
+ Bar& operator*() { static Bar a; return a; }
};
void func1(Baz baz, int i, Bar bar) {
};
ios_base& g() {
+ static ios_base a;
+ return a;
}
return a->bar ();
}
+int
main()
{
+ return 0;
}
func ();
}
+int
main()
{
+ return 0;
}
int
foo::method(void)
{
+ return 0;
}
bar::method (void)
{
quxx::method();
+ return 0;
}
{
extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int)
{
+ return 0;
}
}
static __typeof(pthread_equal)
{
extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int)
{
+ return 0;
}
}
static __typeof(pthread_equal)
struct Foo { Foo(); };
Foo::Foo() { }
-main() { return 0; }
+int main() { return 0; }
struct A {
- virtual int foo() {}
+ virtual int foo() { return 0; }
};
struct B {
virtual int f() {return 1; }
{
}
+int
main()
{
C c;
int int_set_;
foobar (&int_set_, &test_ints[j]);
}
+
+int
main()
{
Test();
A a;
extern int foo();
+
+int
main()
{
a.x = 4 + c.x;
extern JSErrorCallback p;
};
+int
main()
{
if ( x == ONE && p == 0)
static Foo *foo_;
};
Foo *Foo::foo_;
-main() { return 0; }
+int main() { return 0; }
// { dg-lto-do link }
// { dg-require-effective-target fpic }
-// { dg-lto-options {{-fPIC -flto}} }
+// { dg-lto-options {{-fPIC -flto -Wno-return-type}} }
// { dg-extra-ld-options "-fPIC -r -nostdlib" }
namespace std __attribute__ ((__visibility__ ("default")))
// { dg-extra-ld-options "-fPIC -r -nostdlib" }
class DataArray {
- int max() const { }
+ int max() const { return 0; }
};
template < class HashItem >
class DataHashTable {
template < class T >
class DataArray {
- int max() const { }
+ int max() const { return 0; }
};
class Name { };
class DataHashTable {
// { dg-lto-do link }
// { dg-require-effective-target fpic }
-// { dg-lto-options {{-fPIC -O -flto}} }
+// { dg-lto-options {{-fPIC -O -flto -Wno-return-type}} }
typedef double Real;
class Vector {
// { dg-lto-do link }
// { dg-require-effective-target fpic }
-// { dg-lto-options {{-fPIC -O -flto}} }
+// { dg-lto-options {{-fPIC -O -flto -Wno-return-type}} }
typedef double Real;
class Vector {
VECTOR D;
VLength(len, D);
VLength(len, D);
+ return 0;
}
/* { dg-lto-do assemble } */
-static inline int __gthread_active_p (void) { }
+static inline int __gthread_active_p (void) { return 0; }
template <int rank, int dim> class Tensor;
template <int dimension> struct G;
template <int dim> class T {
// { dg-lto-do link }
+// { dg-lto-options "-Wno-return-type" }
typedef long size_t;
template < class, class > struct pair
// { dg-lto-do link }
+// { dg-lto-options "-Wno-return-type" }
typedef int size_t;
template < size_t _Nw > struct _Base_bitset
// { dg-lto-do link }
-// { dg-lto-options {{-O3 -Wno-multichar}} }
+// { dg-lto-options {{-O3 -Wno-multichar -Wno-return-type }} }
// { dg-extra-ld-options "-flto -flto-partition=1to1 -r -nostdlib" }
extern "C" {
- extern "C" {
+ extern "C" {
typedef struct _IO_FILE FILE;
extern struct _IO_FILE *stderr;
extern int fprintf (FILE *__restrict __stream, __const char *__restrict __format, ...);
// { dg-lto-do link }
-// { dg-lto-options {{-O3 -Wno-multichar}} }
+// { dg-lto-options {{-O3 -Wno-multichar -Wno-return-type}} }
// { dg-extra-ld-options "-flto -flto-partition=1to1 -r -nostdlib" }
+
extern "C" {
typedef struct {
union {
};
int B::x() {
+ return 0;
}
-
fn ()
{
C::m ();
+ return 0;
}
-int main() {}
+int main() { return 0; }
fn ()
{
C::m ();
+ return 0;
}
-int main() {}
+int main() { return 0; }
};
int PreParser::ParseMemberWithNewPrefixesExpression ( bool * )
{
+ return 0;
}
}
}
/* { dg-lto-do link } */
/* { dg-require-effective-target fpic } */
-/* { dg-lto-options {{-fPIC -r -nostdlib -flto -O2 -g}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -flto -O2 -g -Wno-return-type}} } */
void frexp (int, int *);
namespace std
// { dg-lto-do link }
-// { dg-lto-options { { -flto -O2 } } }
+// { dg-lto-options { { -flto -O2 -Wno-return-type } } }
// { dg-extra-ld-options "-r -nostdlib -O0" }
class CstringStorageReference {
// { dg-lto-do link }
-// { dg-lto-options { { -flto -std=c++11 -g2 -fno-lto-odr-type-merging -O2 } } }
+// { dg-lto-options { { -flto -std=c++11 -g2 -fno-lto-odr-type-merging -O2 -Wno-return-type } } }
// { dg-extra-ld-options "-r -nostdlib -O2 -fno-lto-odr-type-merging" }
+
namespace std
{
typedef long unsigned int size_t;
/* { dg-lto-do link } */
-/* { dg-lto-options "-O2 -w" } */
/* { dg-extra-ld-options { -O2 -Wno-odr -r -nostdlib } } */
+/* { dg-lto-options { "-O2 -w -Wno-return-type" } } */
+
namespace std
{
template < class > struct char_traits;
// { dg-lto-do link }
-// { dg-lto-options { { -std=gnu++14 -flto -g } { -std=gnu++14 -flto -g -O2 -fno-inline -flto-partition=max } } }
+// { dg-lto-options { { -std=gnu++14 -flto -g -Wno-return-type } { -std=gnu++14 -flto -g -O2 -fno-inline -flto-partition=max -Wno-return-type } } }
// { dg-extra-ld-options "-r -nostdlib" }
namespace std {
then(0, [] {});
}
} clients;
-main() {
+int main() {
B app;
app.run(0, 0, [&] {
auto config = app.configuration()[0].as<std::string>();
clients.then([] {});
});
+
+ return 0;
}
struct cWeightedStdDev : public cStdDev {
virtual int netPack();
};
-int cWeightedStdDev::netPack() { }
+int cWeightedStdDev::netPack() { return 0; }
// { dg-lto-do link }
-// { dg-lto-options "-O2 -rdynamic" }
+// { dg-lto-options { "-O2 -rdynamic -Wno-return-type" } }
// { dg-extra-ld-options "-r -nostdlib" }
// { dg-require-effective-target rdynamic }
template<typename T> inline T qvariant_cast (const QVariant &v)
{
const int vid = qMetaTypeId<T> ((0)) ;
+ return T();
};
class QScriptContext
{
{
QScriptValue data = context->callee () ;
QScriptDebuggerBackendPrivate *self = qscriptvalue_cast<QScriptDebuggerBackendPrivate*> (data) ;
+ return QScriptValue();
}
_Complex float h()throw();
void i(float)throw();
-float j(void)
+void j(void)
{
_Complex float x = h();
try
}
struct S { S () {}; virtual ~S () {}; };
-struct T { virtual T *foo (int) {}; };
+struct T { virtual T *foo (int) { return 0; }; };
struct V : virtual S, virtual T {};
struct V v;
struct U : public S, public T
}
bool m_fn1();
};
-bool Item::m_fn1() {}
+bool Item::m_fn1() { return true; }
// { dg-options "-O2 -fno-inline -fdump-final-insns" }
// { dg-do compile { target c++11 } }
// { dg-final cleanup-final-insns-dump }
+// { dg-additional-options "-Wno-return-type" }
namespace std
{
template<typename _Tp>
inline reference_wrapper<_Tp>
ref(_Tp& __t) noexcept
- {}
+ { return reference_wrapper<_Tp>(); }
template<typename _Tp>
struct _Maybe_wrap_member_pointer
{
};
struct C : public A
{
- virtual int bar () { }
+ virtual int bar () { return 0; }
};
struct D : public C
{
static unsigned *
fn2 ()
{
+ return 0;
}
void
inline void h(const Outer &o)
{
struct Local : public Outer::Inner {
- virtual bool f() {};
+ virtual bool f() { return true; };
};
Local l;
o.g(l);
// the multiplication below to produce a very large number
// in excess of the maximum possible object size (SIZE_MAX/2).
__builtin_memcpy (this->OutP, InP, OutV * sizeof (csVector2)); // { dg-warning "specified size \[0-9\]+ exceeds maximum object size" }
+ return 0;
}
};
}
InPolygon, InCount,
OutPolygon);
uint8 Clipped = boxClip.Clip ();
+ return 0;
}
namespace Ecma {
class Core {
public:
- inline QScriptEnginePrivate *engine() const { }
- inline QScriptClassInfo *classInfo() const { }
+ inline QScriptEnginePrivate *engine() const { return 0; }
+ inline QScriptClassInfo *classInfo() const { return 0; }
QScriptValueImpl publicPrototype;
};
class Boolean: public Core {
return l;
}
-main()
+int main()
{
A a = bar ();
struct A
{
- virtual int a () {}
+ virtual int a () { return 0; }
};
struct B : public A
{
- virtual int b () {}
+ virtual int b () { return 1; }
};
struct C : public A
{
- virtual int c () {}
+ virtual int c () { return 2; }
};
struct D
{
{
int type:16;
};
-struct Geometry get() {};
+struct Geometry get() { return Geometry(); };
int f()
{
struct Geometry test;
// { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } }
// { dg-options "-O3 -fselective-scheduling2" }
+// { dg-additional-options "-Wno-return-type" }
namespace std {
template<typename _Tp> class allocator: public new_allocator<_Tp> { public: typedef size_t size_type; template<typename _Tp1> struct rebind { typedef allocator<_Tp1> other; }; };
class back_insert_iterator { };
-template<typename _Container> back_insert_iterator back_inserter(_Container& __x) { };
+template<typename _Container> back_insert_iterator back_inserter(_Container& __x) { return back_insert_iterator(); };
class vector { };
};
template <class K> Object intersection( const typename K::Segment_2 &seg, const typename K::Iso_rectangle_2 &iso, const K&) {
typedef Segment_2_Iso_rectangle_2_pair<K> is_t; is_t ispair(&seg, &iso); switch (ispair.intersection_type()) { }
+ return Object();
}
template <class K> typename Segment_2_Iso_rectangle_2_pair<K>::Intersection_results Segment_2_Iso_rectangle_2_pair<K>::intersection_type() const {
typedef typename K::RT RT;
// { dg-do compile }
// { dg-options "-O -fstrict-aliasing -ftree-pre -fno-tree-fre -fno-tree-sra" }
+// { dg-additional-options "-Wno-return-type" }
typedef __SIZE_TYPE__ size_t;
namespace std
return ((m_p_nd->m_p_right));
}
bool operator == (bin_search_tree_const_node_it_)
- {}
+ { return true; }
node_pointer m_p_nd;
};
template
int,
null_mapped_type,
less < int >, rb_tree_tag, tree_order_statistics_node_update > set_t;
-main ()
+int main ()
{
set_t s;
s.insert (12);
int *a;
A ();
~A () { a3 (); }
- int a1 (int * p) { if (!p) f3 (); f2 (p); }
+ int a1 (int * p) { if (!p) f3 (); f2 (p); return 0; }
int *a2 ();
void a3 () { if (*a) a1 (a); }
- int a4 (int x) { if (*a) f4 (); *a2 () += x; }
+ int a4 (int x) { if (*a) f4 (); *a2 () += x; return 0; }
};
struct B : A
static int Set (Funcs * f, const pfunc & fp)
{
(f->*fp) ();
+ return 0;
}
void
F (int &, const int &, const A &);
bool foo (int &, bool) const;
};
-bool D::foo (int &, bool) const {}
+bool D::foo (int &, bool) const { return true; }
F::F (int &, const int &, const A &) {}
-bool F::foo (int &, bool) const {}
+bool F::foo (int &, bool) const { return false; }
{
int _Num = p2 - p1;
__builtin_memmove (0, p1, sizeof (_Tp) * _Num);
+ return 0;
}
};
template <int, typename _II, typename _OI> void __copy_move_a (_II p1, _II p2, _OI p3)
template <typename _InputIterator, typename _ForwardIterator> static _ForwardIterator __uninit_copy (_InputIterator p1, _InputIterator p2, _ForwardIterator p3)
{
copy (p1, p2, p3);
+ return _ForwardIterator();
}
};
template <typename _InputIterator, typename _ForwardIterator> void
struct C
{
template <typename S, typename T, typename U>
- static S f5 (S x, T y, U z) { f2 (x, y, z); }
+ static S f5 (S x, T y, U z) { f2 (x, y, z); return S(); }
};
template <typename S, typename T, typename U>
static int m_fn3(int, int, int, A) {
D &self = singleton;
self.m_fn2();
+ return 0;
}
static D singleton;
};
template <typename, typename> struct C { bool m_fn4() const; };
template <typename Base, typename Traits> bool C<Base, Traits>::m_fn4() const {
Traits::m_fn3(0, 0, 0, Base::singleton);
+ return true;
}
template struct C<A, D>;
template <typename T> struct L
{
struct K { K (int); void operator() (int *) { bar ().q (); } };
- static J<T> bp () { bq (0); }
+ static J<T> bp () { bq (0); return J<T>(); }
template <typename br> static void bq (br) { J<T> (0, K (0)); }
};
struct F
{
- virtual J<int> x (int) { foo (0, 0, 0); J<bs<> > (L<bs<> >::bp ()); }
+ virtual J<int> x (int) { foo (0, 0, 0); J<bs<> > (L<bs<> >::bp ()); return J<int>(); }
};
void
// PR c++/82159
// { dg-do compile }
// { dg-options "" }
+// { dg-additional-options "-Wno-return-type" }
template <typename T> struct D { T e; };
struct F : D<int[0]> {
bool reserve (int want)
{
new unsigned char[want];
+ return true;
}
unsigned char xvalue_store[257];
void assert_fail (const char*);
-int f(const set<int, int_less_than>&)
+void f(const set<int, int_less_than>&)
{
assert_fail (__PRETTY_FUNCTION__);
mapped_type& operator[](const key_type& __k) {
insert(value_type(__k, mapped_type()));
+ static mapped_type a;
+ return a;
}
};
// { dg-do compile }
// { dg-options "" }
-S () : str(__PRETTY_FUNCTION__) {} // { dg-error "forbids declaration" "decl" }
+S () : str(__PRETTY_FUNCTION__) { return S(); } // { dg-error "forbids declaration" "decl" }
// { dg-error "only constructors" "constructor" { target *-*-* } .-1 }
c4* c3::func()
{
+ return 0;
}
if (_p != 0)
_p->decrementRefCount ();
}
+ static RefCountPointer a;
+ return a;
}
~RefCountPointer ()
{
typedef int*const *_Iterator;
int*const * _M_current;
__normal_iterator(const _Iterator& __i) : _M_current(__i){}
- const _Iterator& base() const {}
+ const _Iterator& base() const { static _Iterator a; return a; }
};
struct string { ~string(){} };
struct vector
{
for (unsigned int window = 0; window < layout.size();++window)
(this->*func)();
+ return 0;
}
int t;
-int Painter::redraw_window(void) {t = 1;}
+int Painter::redraw_window(void) {t = 1; return 0; }
string t2(int);
vector *g(const string&);
void Painter::tcl_command(void)
T *t3;
} t;
int m1 () const { return t.t3[0].t1; }
- char *m2 () { foo (); }
+ char *m2 () { foo (); return 0; }
void m3 (int x) { char *m = m2 (); if (m1 () > 0 && x > 0); }
void m4 () { if (m1 () > 0) for (int i = 0; i < 4; i++) t.t2[i] = 0; }
};
C ();
};
-static inline C *foo () {}
+static inline C *foo () { return 0; }
extern void f4 ();
f3 ()
{
f4 ();
+ return 0;
}
static inline void
// PR debug/52048
// { dg-do compile }
// { dg-options "-fcompare-debug -fnon-call-exceptions -fno-tree-dominator-opts -O2" }
+// { dg-additional-options "-Wno-return-type" }
template <typename T> struct A;
template <typename T>
ParseOptionType getParseOption(void);
};
typedef XalanCProcessor::ParseOptionType ParseOptionType;
-ParseOptionType XalanCProcessor::getParseOption(void) {}
+ParseOptionType XalanCProcessor::getParseOption(void) { return ParseOptionType(); }
{
template<typename U>
static bool func(const U& x)
- {}
+ { return true; }
public:
template<typename U>
unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const
- {}
+ { return 0; }
};
class bar {
bool bar::Initialize()
{
b.Find(b);
+ return false;
}
operator UnspecifiedBoolTypeA() const;
operator UnspecifiedBoolTypeB() const;
};
-inline bool equalIgnoringCase(const String& a, const String& b) { }
+inline bool equalIgnoringCase(const String& a, const String& b) { return true; }
inline bool equalPossiblyIgnoringCase(const String& a,
const String& b,
bool ignoreCase) {
// PR c++/50442
+// { dg-additional-options "-Wno-return-type" }
template <typename T> struct MoveRef { operator T& () {} };
template <typename T> MoveRef <T> Move(T&) {}
template<typename T>
int high(T a, T b, T c) { return a + b + c; } // { dg-message "template" }
-int test (void)
+void test (void)
{
low (5, 6); // { dg-error "no matching function" }
// { dg-message "(candidate|3 arguments, 2 provided)" "" { target *-*-* } .-1 }
struct BB : AA {};
class AAA {
- int get() const {}
+ int get() const { return 0; }
};
struct BBB {
static BBB *foo();
private:
- int get() const {} /* { dg-message "private" } */
+ int get() const { return 1; } /* { dg-message "private" } */
};
template<bool> struct S {
S(unsigned int = BBB::foo()->AAA::get()); /* { dg-error "is not a base of" } */
// PR c++/56241
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
struct pair { constexpr pair (const) : }; // { dg-error "" }
template <0> make_pair () {} // { dg-error "" }
// PR c++/79414
+// { dg-additional-options "-Wno-return-type" }
class x0;
template <x1> x2() { // { dg-error "declared|type" }
// PR c++/27309
+// { dg-additional-options "-Wno-return-type" }
struct A
{
int Foo ()
{
R s (1);
+ return 0;
}
template <typename T> struct Q
int Foo (Q<int> *s)
{
s->Foo (1);
+ return 1;
}
namespace sc_dt {
class sc_length_param {
- friend int compare_unsigned(int if_v_signed = 0) {}
+ friend int compare_unsigned(int if_v_signed = 0) { return 0; }
};
}
// PR c++/13269
// { dg-options "-fshow-column" }
+// { dg-additional-options "-Wno-return-type" }
class Foo { int foo() return 0; } };
-// { dg-error "30:expected identifier before numeric constant" "identifier" { target *-*-* } 4 }
+// { dg-error "30:expected identifier before numeric constant" "identifier" { target *-*-* } 5 }
-// { dg-error "23:named return values are no longer supported" "named return" { target *-*-* } 4 }
+// { dg-error "23:named return values are no longer supported" "named return" { target *-*-* } 5 }
// the column number info of this error output is still wrong because the error
// message has been generated by cp_parser_error() which does not
// necessarily allow accurate column number display. At some point, we will
// need make cp_parser_error() report more accurate column numbers.
-// { dg-error "30:expected '\{' at end of input" "brace" { target *-*-* } 4 }
+// { dg-error "30:expected '\{' at end of input" "brace" { target *-*-* } 5 }
-// { dg-error "34:expected ';' after class definition" "semicolon" {target *-*-* } 4 }
-
-// { dg-error "35:expected declaration before '\}' token" "declaration" {target *-*-* } 4 }
+// { dg-error "34:expected ';' after class definition" "semicolon" {target *-*-* } 5 }
+// { dg-error "35:expected declaration before '\}' token" "declaration" {target *-*-* } 5 }
X(double *data, double d0, double d1);
};
-int foo(double d0) {
+void foo(double d0) {
double * data;
X(data,d0,d0);
}
// PR c++/34488
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
struct A
{
void baz(int);
}
-int bar(int foo) {
+void bar(int foo) {
foo::baz (3);
}
namespace A {
void f();
}
-int g()
+void g()
{
struct f { };
using A::f;
+// { dg-additional-options "-Wno-return-type" }
+
struct S {} f(); // { dg-error "return" "err" }
// { dg-message "note" "note" { target *-*-* } .-1 }
struct T {} *g(); // { dg-error "return" }
typedef extern int c; // { dg-error "conflicting" }
static typedef int a; // { dg-error "conflicting" }
-int foo()
+void foo()
{
typedef auto int bar; // { dg-error "conflicting|two or more data types" }
}
int LocalStaticTest()
{
static A sa;
+ return 0;
}
int main(int argc, char **argv)
{
A::StaticTest();
+ return 0;
}
int field;
};
-int test_structure_references (struct test_struct *ptr)
+void test_structure_references (struct test_struct *ptr)
{
struct test_struct local;
local.field = 42;
{ dg-end-multiline-output "" } */
}
-int test_postfix_incdec (int i)
+void test_postfix_incdec (int i)
{
__emit_expression_range (0, i++ ); /* { dg-warning "range" } */
/* { dg-begin-multiline-output "" }
/* Unary operators. ****************************************************/
-int test_sizeof (int i)
+void test_sizeof (int i)
{
__emit_expression_range (0, sizeof(int) + i); /* { dg-warning "range" } */
/* { dg-begin-multiline-output "" }
{ dg-end-multiline-output "" } */
}
-int test_alignof (int i)
+void test_alignof (int i)
{
__emit_expression_range (0, alignof(int) + i); /* { dg-warning "range" } */
/* { dg-begin-multiline-output "" }
{ dg-end-multiline-output "" } */
}
-int test_prefix_incdec (int i)
+void test_prefix_incdec (int i)
{
__emit_expression_range (0, ++i ); /* { dg-warning "range" } */
/* { dg-begin-multiline-output "" }
int g = g;
Foo foo = foo;
-int func()
+void func()
{
Bar *bar1, bar2;
Foo local_foo;
int g = g; // { dg-warning "assigned to itself" }
Foo foo = foo; // { dg-warning "assigned to itself" }
-int func()
+void func()
{
Bar *bar1, bar2;
Foo local_foo;
int g = g; // { dg-warning "assigned to itself" }
Foo foo = foo; // { dg-warning "assigned to itself" }
-int func()
+void func()
{
Bar *bar1, bar2;
Foo local_foo;
int g = g; // { dg-bogus "assigned to itself" }
Foo foo = foo; // { dg-bogus "assigned to itself" }
-int func()
+void func()
{
Bar *bar1, bar2;
Foo local_foo;
// { dg-do compile }
// { dg-options "-O0 -fdump-tree-gimple" }
+int
main ()
{
char s[10];
const int t = (__builtin_memcpy (s, "Hello", 6), 777);
__builtin_printf ("%d %s\n", t, s);
+ return 0;
}
// { dg-final { scan-tree-dump-times "memcpy" 1 "gimple" } }
/* { dg-do compile } */
/* { dg-options "-O -fdump-rtl-reload" } */
+int
main ()
{
char s[10];
const int t = (__builtin_memcpy (s, "Hello", 6), 5);
__builtin_printf ("%d %s\n", t, s);
+ return 0;
}
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fselective-scheduling2 -fsel-sched-pipelining" } */
+/* { dg-additional-options "-Wno-return-type" } */
extern "C" {
typedef struct _IO_FILE FILE;
sort(c, b, qt_notclosestLeaf);
}
}
-A F::m_fn1() const { const_cast<F *>(this)->d_ptr->m_fn1(); }
+A F::m_fn1() const { const_cast<F *>(this)->d_ptr->m_fn1(); return A(); }
// PR debug/59510
// { dg-do compile }
// { dg-options "-O2 -g --param=large-stack-frame-growth=1" }
+// { dg-additional-options "-Wno-return-type" }
template <typename _Iterator>
struct _Iter_base
/* { dg-do compile } */
/* { dg-options "-std=c++11 -O2" } */
+/* { dg-additional-options "-Wno-return-type" } */
__extension__ typedef unsigned long long int uint64_t;
namespace std __attribute__ ((__visibility__ ("default")))
void blah (int *);
-int
+void
bar ()
{
blah (foo);
}
-int
+void
baz ()
{
blah (foo);
void blah (int *);
-int
+void
bar ()
{
blah (foo ());
}
-int
+void
baz ()
{
blah (foo ());
extern template class D<char>;
enum L { M };
struct F { virtual char *foo (); };
-template <class> struct I : B { static int foo (int) {} };
+template <class> struct I : B { static int foo (int) { return 0; } };
struct G { typedef I<int> t; };
void foo (int) { G::t::foo (0); }
void bar (const D<char> &, const D<int> &, int, L);
basic_string() : _M_dataplus(0) {}
basic_string(const basic_string &) : _M_dataplus(0) {}
size_type size() { return _M_string_length; }
- char *data() const {}
+ char *data() const { return 0; }
};
//template<> basic_string<char, std::char_traits<char>, std::allocator<char>>::
//_Alloc_hider::_Alloc_hider(char*, std::allocator<char>&&) {}
// { dg-options "-g" }
struct A {
- operator long() {}
+ operator long() { return 0; }
} __attribute__((__may_alias__));
struct {
p1 = 0;
b--;
}
+
+ return 0;
}
// { dg-do compile }
// { dg-options "-O2 -std=c++17 -fno-exceptions" }
+// { dg-additional-options "-Wno-return-type" }
template <class a> struct b { typedef a *c; };
class e {};
FOO_SECOND
};
-int
+void
test_6 (enum foo f)
{
switch (f)
{
X x;
f(x); // { dg-error "matching" "matching" }
+ return 0;
}
}
{
X<T> x;
N2::f(x); // { dg-error "matching" "matching" }
+ return 0;
}
template int foo<float>(); // { dg-message "required from here" }
struct B {
void *(*a)();
};
-template <typename T> void *CreateA() {}
+template <typename T> void *CreateA() { return 0; }
B b = {CreateA<A>};
struct x {
- int foo () {}
+ int foo () { return 0; }
};
template <class T>
struct vector {
- T& bar () {}
+ T& bar () { static T a; return a; }
};
template <class T>
typename BaseT::callback_type p3)
{
p3.on_extended_iso_date ();
+ return char_type();
}
};
struct F
int bar( const char(&val)[M] )
{
foo (N,M);
+ return 0;
}
int i = bar<10>("1234");
// We were getting different canonical types for matching types because
// TYPE_ALIGN wasn't propagated to all the variants fast enough.
// { dg-options "" }
+// { dg-additional-options "-Wno-return-type" }
typedef __SIZE_TYPE__ size_t;
enum { chunk_size = 16 };
};
template <class T> int First<T>::Foo ()
-{} // This is here to make sure we didn't smash Foo's decl in the
- // method vector
+{ return 0; } // This is here to make sure we didn't smash Foo's decl in the
+ // method vector
struct B { };
struct D { };
// PR c++/44625
// { dg-do compile }
// { dg-options "" }
+// { dg-additional-options "-Wno-return-type" }
template<typename FP_> struct Vec { // { dg-message "note" }
Vec& operator^=(Vec& rhs) {
// PR c++/17642
template<int dim>
-int f(const int* const lsh, const int* const bbox, const int* const nghostzones, int d)
+void f(const int* const lsh, const int* const bbox, const int* const nghostzones, int d)
{
for (int d=0; d<dim; ++d)
lsh[d] - (bbox[2*d+1] ? 0 : nghostzones[d]);
};
template <typename U>
- int wom(U c)
+ void wom(U c)
{
struct foo b;
}
// PR c++/14763
struct A {
- int get() const {}
+ int get() const { return 0; }
static A *foo();
};
};
A *fn1(int *);
template <typename> class B : A {
- static int *m_fn2() { fn1(m_fn2())->m_fn1<A>(); }
+ static int *m_fn2() { fn1(m_fn2())->m_fn1<A>(); return 0; }
};
int Btest()
{
B<256 >> 4>();
+ return 0;
}
template <int N = 123>>4>
int f ()
{
B<int> b; // { dg-message "required" }
+ return 0;
}
Iter<typename Graph<T>::Node*> *Graph<T>::Inner::get() {
SubIter<typename Graph<T>::Node*> *iter;
iter->insert(0);
+ return 0;
}
int main() {
Iter<Graph<int>::Node*> *n2_iter = new SubIter<Graph<int>::Node*>();
+ return 0;
}
{
C c;
c.ii = 0; // { dg-error "context" }
+ return 0;
}
template <class T> void A<T*>::i(char)
{
C c;
c.ii = 0; // { dg-error "context" }
+ return 0;
}
void A<char>::i(char)
= ( number_of_composite_sequences + SequenceMapIndex( 1 ) )
* ( number_of_composite_sequences + 1 );
map_from_2_hints_to_composite_sequence.reset(new SequenceIndex[ntt]());
+ return true;
}
template<T> int foo(); // { dg-error "double" }
};
-template<typename T> int baz(T) { C<T> c; } // { dg-message "required" }
+template<typename T> int baz(T) { C<T> c; return 0;} // { dg-message "required" }
void foobar()
{
int foo(char*, S&); // { dg-message "foo" }
// { dg-message "candidate expects 2 arguments, 3 provided" "arity" { target *-*-* } .-1 }
-int foo2(int x)
+void foo2(int x)
{
S s={1,2};
char c;
f_obj<&foo::g> c; // OK
f_obj<foo::g> d; // OK
+ return 0;
}
struct A
{
template<int> void foo() {}
- template<int> int foo() {}
+ template<int> int foo() { return 0; }
};
template <class Fn> void def(Fn fn) {}
template <class T1, class T2> T2 fn(T1, T2);
-template <class T1> int fn(T1) { }
+template <class T1> int fn(T1) { return 0; }
int main()
{
def(fn<int>);
+ return 0;
}
// PR c++/36435
template <class T> T f();
-template <class T> T* f() { }
+template <class T> T* f() { return 0; }
template int* f();
void sort (int (*compare) (T *const&,T *const&));
};
-int shift_compare (int *const &, int *const &) {}
+int shift_compare (int *const &, int *const &) { return 0; }
template<class T> void
Link_array<T>::sort (int (*compare) (T *const&,T *const&))
for that in this case). */
// { dg-options "-fdiagnostics-show-template-tree" }
+// { dg-additional-options "-Wno-return-type" }
#include <map>
#include <vector>
template <int> struct S{};
-template <int N> S<sizeof(new double[N])> f() {}
+template <int N> S<sizeof(new double[N])> f() { return S<sizeof(new double[N])>(); }
template S<sizeof(void*)> f<2>();
template<int N> struct X { char x[N]; };
template<typename T> X<1 + sizeof(T) - sizeof(T)> F(T const &);
-template<int N> struct S { int d() { F(1); } };
+template<int N> struct S { int d() { F(1); return S(); } };
+// { dg-additional-options "-Wno-return-type" }
+
template <bool, int> struct X {};
template <bool C> struct X<C,1> {
A<int>::B<char> b;
-int h()
+void h()
{
b.f();
b.g(0);
// PR c++/34206
+// { dg-additional-options "-Wno-return-type" }
template<class _T1, class _T2> struct pair { };
template <class T0, class T1> struct tuple {
{
G<int> a;
a.f();
+ return 0;
}
static int label (int w)
{
sizeof(int[w]);
+ return 0;
}
int a = label<false>(1);
// { dg-do compile }
// { dg-options "-fgnu-tm -O3" }
+// { dg-additional-options "-Wno-return-type" }
template<typename _InputIterator, typename _Distance> inline void advance(_InputIterator& __i, _Distance __n)
{
// { dg-do compile }
// { dg-options "-fgnu-tm -O0"}
+// { dg-additional-options "-Wno-return-type" }
namespace std __attribute__ ((__visibility__ ("default"))) {
template<class _T1, class _T2>
}
const list& _M_get_Node_allocator() const
{
+ static list l;
+ return l;
}
list _M_get_Tp_allocator() const
{
int getStringHeight()
{
basic_string<> tmp;
+ return 0;
}
struct S {
virtual ~S();
};
-int f() transaction_safe {
+void f() transaction_safe {
S s; // { dg-error "unsafe" "invocation of unsafe destructor" }
}
template<>
void f(bool); // not transaction-safe
-int g() transaction_safe
+void g() transaction_safe
{
f(42); // OK
f(true); // { dg-error "unsafe" }
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
/* Reduced from libstdc++-v3/testsuite/25_algorithms/equal/1.cc
1.2.ii: In function 'void test1()':
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
struct input_iterator_tag { };
template<typename _Category, typename _Tp, typename _Distance = long, typename _Pointer = _Tp*, typename _Reference = _Tp&>
/* { dg-options "-fno-short-enums" } */
+/* { dg-additional-options "-Wno-return-type" } */
enum
{
_sch_isdigit = 0x0004,
c1 = 0x80;
c1 |= (bitsperpixel - 1) << 4;
store << c1;
+ return true;
}
-void* operator new(__SIZE_TYPE__, void* __p) { }
+// { dg-additional-options "-Wno-return-type" }
+
+void* operator new(__SIZE_TYPE__, void* __p) {}
struct auto_ptr {
int* p;
class pf_Frag {
public:
typedef enum _PFType { PFT_Object } PFType;
- inline PFType getType(void) const { }
- inline pf_Frag * getNext(void) const { }
- PT_DocPosition getPos(void) const { }
+ inline PFType getType(void) const { return PFType(); }
+ inline pf_Frag * getNext(void) const { return 0; }
+ PT_DocPosition getPos(void) const { return PT_DocPosition(); }
};
class pf_Fragments {
public:
static float readFloat(ifstream& in) {
float f;
in.read((char*) &f, sizeof(float));
+ return f;
}
Mat4f readMeshMatrix(ifstream& in, int nBytes) {
float m00 = readFloat(in);
A test ()
{
const A a (42, true);
+ return a;
}
// { dg-require-effective-target fpic }
// { dg-require-visibility "" }
// { dg-options "-fPIC" }
+/* { dg-additional-options "-Wno-return-type" } */
typedef __SIZE_TYPE__ size_t;
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
/* { dg-options "-ffat-lto-objects" } */
+/* { dg-additional-options "-Wno-return-type" } */
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__))
void * memset (void *__dest, int __ch, size_t __len) throw () {
if (__builtin_constant_p (__len) && __len == 0)
- __warn_memset_zero_len (); /* { dg-warning "declared with attribute warning" } */
-
- return __dest;
+ __warn_memset_zero_len ();
}
}
inline void clear_mem(void* ptr, u32bit n) {
public:
SecureVector<T>& operator=(const MemoryRegion<T>& in) {
if(this != &in) this->set(in);
- return *this;
}
};
class OctetString {
public:
SecureVector<byte> bits_of() const {
- return SecureVector<byte> ();
}
OctetString& operator^=(const OctetString&);
void change(const MemoryRegion<byte>& in) {
if(&k == this) {
bits.clear();
}
-
- return *this;
}
bool __attribute__((flatten))
operator==(const OctetString& s1, const OctetString& s2) {
+/* { dg-additional-options "-Wno-return-type" } */
+
typedef __SIZE_TYPE__ size_t;
template<typename _Iterator, typename _Container> class __normal_iterator {
public:
/* PR target/36745 */
/* { dg-do compile } */
/* { dg-options "-O2 -fPIC" } */
+/* { dg-additional-options "-Wno-return-type" } */
/* { dg-require-effective-target fpic } */
typedef __SIZE_TYPE__ size_t;
{
foo (u);
foo (t);
+ return 0;
}
AbcExtent2d(const AbcA2d & rMin, const AbcA2d & rMax);
AbcA2d ClampPoint2d(const AbcA2d & rPoint) const;
AbcA2d GetMax() const { return m_vMax; }
- AbcA2d GetMin() const { }
+ AbcA2d GetMin() const { return AbcA2d(); }
AbcA2d Evaluate(double dNormalizedX, double dNormalizedY) const;
};
inline AbcExtent2d::AbcExtent2d(const AbcA2d & rMin, const AbcA2d & rMax)
if (!DoesPointLieOnAbcde(sUV,0))
;
}
+
+ return 0;
}
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
void *fastMalloc (int n);
void fastFree (void *p);
{
basic_ostream<char, char_traits<char> > os;
copy(ostream_iterator<const int>(os, ","));
+ return 0;
}
/* { dg-options "-std=gnu++0x" } */
+/* { dg-additional-options "-Wno-return-type" } */
typedef __SIZE_TYPE__ size_t;
namespace std __attribute__ ((__visibility__ ("default"))) {
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
/* { dg-require-visibility "" } */
typedef unsigned int size_t;
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
class IntSize {
public:
/* { dg-do compile } */
+// { dg-additional-options "-Wno-return-type" }
template < typename > class basic_stringstream;
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
typedef int PRInt32;
class nsTreeRows {
*z = *x;
++z;
}
+ return U();
};
template <typename T, typename U>
bar (T x, T y, U z)
{
baz (A <T>::b (x), A <T>::b (y), A <U>::b (z));
+ return U();
}
struct C
};
QValueList<Cell*> Cell::obscuringCells() const {
QValueList<Cell*> empty;
+ return QValueList<Cell*>();
}
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
typedef __SIZE_TYPE__ size_t;
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
struct Matrix{
int operator[](int n){
sf ( __PRETTY_FUNCTION__);
+ return 0;
}
int operator[](int n)const{
sf ( __PRETTY_FUNCTION__);
+ return 0;
}
};
void calcmy(Matrix const &b, Matrix &c, int k){
// { dg-do compile }
// { dg-options "" }
// { dg-options "-fpic" { target fpic } }
+// { dg-additional-options "-Wno-return-type" }
template <typename T> struct S2
{
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
+
extern "C" {
typedef __SIZE_TYPE__ size_t;
typedef struct {
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
+
extern "C"
{
typedef long unsigned int size_t;
+/* { dg-additional-options "-Wno-return-type" } */
+
typedef unsigned int PRUint32;
typedef int PRInt32;
typedef unsigned long PRUint64;
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std {
typedef __SIZE_TYPE__ size_t;
bs.SkipBits(10);
}
}
+ return Status();
}
void BitstreamReader::SkipBits(Ipp32s iNum) {
if (iNum <= m_iReadyBits) {
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std __attribute__ ((__visibility__ ("default")))
{
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std {
template<class,class>struct pair{};
extern "C" __inline __attribute__ ((__gnu_inline__)) int pthread_equal ()
{
+ return 0;
}
static
int identifierByPthreadHandle ()
{
pthread_equal ();
+ return 0;
}
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace internal {
template < class DSC, bool Const > struct CC_iterator {
// { dg-do compile }
// { dg-options "-ftree-vrp -fno-guess-branch-probability -fnon-call-exceptions" }
+// { dg-additional-options "-Wno-return-type" }
void *xalloc ();
void xfree (void *);
static inline bool Dispatch (T* obj, void (T::*func) ())
{
(obj->*func) ();
+ return true;
}
class C
{
case 1:
b = Dispatch (this, &C::g);
}
+
+ return true;
}
void C::g ()
{
__builtin_abort ();
}
+int
main ()
{
test01 ();
+ return 0;
}
}
scoped_array<unsigned char> signed_data(new unsigned
char[signed_data_len]);
+
+ return true;
}
}
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
typedef __SIZE_TYPE__ size_t;
extern "C" void *memcpy (void *, __const void *, size_t);
p_tn->y = (g1.y + g3.y*bp1)*tn1;
p_tn->z = (g1.z + g3.z*bp1)*tn1;
p_tn->w = (g1.w + g3.w*bp1)*tn1;
+ return 0;
}
};
void * id_state::start_file(void) {
intrusive_ptr<file_info> parent;
+ return 0;
}
struct id_generation_data : intrusive_base<id_generation_data> {
void child_length() const {}
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std {
typedef __SIZE_TYPE__ size_t;
};
class c6 {
- public: int get() const {};
+ public: int get() const { return 0; };
};
class c7 {
void *ret;
if (! ret)
__scoped_lock sentry(emergency_mutex);
+ return 0;
}
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
extern "C" class WvFastString;
typedef WvFastString& WvStringParm;
// { dg-do compile }
// { dg-options "-std=c++11" }
+// { dg-additional-options "-Wno-return-type" }
namespace std
{
// { dg-do compile }
// { dg-options "-g" }
+// { dg-additional-options "-Wno-return-type" }
typedef unsigned int uint32_t;
typedef unsigned long int uint64_t;
// { dg-do compile }
// { dg-options "-ftracer -fno-tree-dce -fno-tree-sra" }
+// { dg-additional-options "-Wno-return-type" }
struct bidirectional_iterator_tag
{};
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std __attribute__ ((__visibility__ ("default"))) {
template<typename _Iterator> struct iterator_traits {
// PR tree-optimization/56029
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
template <class T>
struct DefaultDeleter
void operator++ ();
};
-bool operator!= (Iter &, Iter &) { }
+bool operator!= (Iter &, Iter &) { return true; }
struct Container
{
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
typedef long unsigned int size_t;
namespace std {
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std {
typedef long unsigned int size_t;
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std
{
// { dg-do compile }
// { dg-options "-fpermissive" }
+// { dg-additional-options "-Wno-return-type" }
typedef long unsigned int size_t;
typedef bool _CORBA_Boolean;
typedef unsigned int _CORBA_ULong;
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
+
template <typename _Tp> _Tp *__addressof(_Tp &) {}
template <typename _Tp> class A {
public:
C a;
DebuggerType b;
void operator==(A &, const A &);
-static A get_dbx_doc(A &p1) { p1 == 0; }
+static A get_dbx_doc(A &p1) { p1 == 0; return A(); }
void add_button() {
A c;
d.a = (int) (b * x);
}
baz (&d);
+
+ return 0;
}
|| list_arry[4][orig].getSize () > 0)
{
}
+
+ return 0;
}
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
struct A
{
// { dg-do compile }
-// { dg-additional-options "-Wno-psabi" }
+// { dg-additional-options "-Wno-psabi -Wno-return-type" }
// Ignore warning on some powerpc-linux configurations.
// { dg-prune-output "non-standard ABI extension" }
// { dg-do compile }
-// { dg-additional-options "-std=gnu++11" }
+// { dg-additional-options "-std=gnu++11 -Wno-return-type" }
enum class nsresult;
class A;
if (a)
c.Range.m_fn1 ();
m_fn2 (semi, 0, b ? "" : a ? "alias declaration" : "using declaration");
+ return 0;
}
class H
{
void m_fn7 (const F &, bool &);
- bool m_fn8 (const D<F> &, const F &, F &);
+ void m_fn8 (const D<F> &, const F &, F &);
};
typedef A<int> CandPair;
class I
F h;
m_fn8 (g, f.first, h);
}
-bool
+void
H::m_fn8 (const D<F> &p1, const F &, F &)
{
F i;
};
struct top {
- virtual int topf() {}
+ virtual int topf() { return 0; }
};
struct child1: top {
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
+
typedef enum
{
NS_OK
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
namespace std
{
&& (*value == '\'' || *value == '\n') && !issued_error)
error_at (this->location (), "invalid character literal");
}
+
+ return 0;
}
B::m_fn1 (int *) const
{
new B (m_fn2 (0)->m_fn1 (0), 0, m_fn2 (0)->m_fn1 (0));
+ return 0;
}
1 ? VTables.m_fn2() : 0;
}
void B::m_fn1(bool, const int *, int &) { C(); }
-unsigned B::m_fn2() { m_fn1(0, 0, a); }
+unsigned B::m_fn2() { m_fn1(0, 0, a); return 0; }
a = acos(c);
double d = m_fn1(b);
acos(d);
+ return 0;
}
void passTime() {
/* { dg-do compile } */
// { dg-timeout-factor 2.0 }
-// { dg-additional-options "-std=c++11 -fsanitize=undefined -O2" }
+// { dg-additional-options "-std=c++11 -fsanitize=undefined -O2 -Wno-return-type" }
class ECoordinate { };
class EPoint {
public:
public:
unsigned long write(const char *p1, unsigned long p2) {
m_string.push_range(p1 + p2);
+ return 0;
}
};
char *write_signed_decimal_backward(bool) {
unsigned long A<StackRep>::fillStack(unsigned long p1) {
void *retAddr[p1];
fn1(retAddr);
+ return 0;
}
class B {
protected:
void *C<MemBlockPtrT, ThreadListT>::malloc(unsigned long) {
MemBlockPtrT mem;
mem.alloc(0);
+ return 0;
}
C<D<16>, int> *_GmemP;
}
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
template <typename> class A;
template <typename _Tp> using __allocator_base = _Tp;
c[2] = m_fn2(b);
c[3] = m_fn2(a);
c[ProjectRectBounds_next].m_fn1();
+ return 0;
}
D operator*(D p1) {
D d;
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
// { dg-additional-options "-mcpu=970 -maltivec" { target powerpc*-*-* } }
typedef union {
-// { dg-additional-options "-std=c++14" }
+// { dg-additional-options "-std=c++14 -Wno-return-type" }
template<typename Signature>
class function;
typedef unsigned long int pthread_t;
extern "C" {
extern __inline __attribute__ ((__gnu_inline__)) int pthread_equal (pthread_t __thread1, pthread_t __thread2) throw () {
+ return 0;
}
}
typedef pthread_t __gthread_t;
bool
m_fn1 () const
{
+ return true;
}
C () {}
};
+
+ return 0;
}
void
fn1 (A &p1)
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
+
typedef enum {} nsresult;
struct A {
// PR middle-end/78507
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
+
struct A {
template <typename _Iterator1, typename _Iterator2>
int operator()(_Iterator1, _Iterator2);
F::g ()
{
a = i (h, b, 0);
+ return 0;
}
}
// { dg-do compile }
+// { dg-additional-options "-Wno-return-type" }
template <typename> struct remove_reference;
template <typename _Tp> struct remove_reference<_Tp &> { typedef _Tp type; };
i ()
{
static d j;
+ return d();
}
int *k () throw (a::c);
};
}
}
i ().e ();
+ return 0;
}
//
// { dg-do compile { target { lp64 } } }
// { dg-options "-Wno-error -fno-exceptions -fno-tree-vrp -O2 -fprofile-generate -finline-limit=500 -std=c++98" }
-//
+// { dg-additional-options "-Wno-return-type" }
#include <map>
#include <vector>
// with the subvars leading to the subvars not being renamed when they should
// { dg-do compile }
// { dg-options "-O2" }
+// { dg-additional-options "-Wno-return-type" }
__extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t;
__extension__ typedef __SIZE_TYPE__ size_t;
namespace std
};
double potentially_runnable_resource_share();
void f1(double);
-int make_scheduler_request(double a, double b)
+void make_scheduler_request(double a, double b)
{
MIOFILE mf;
double prrs = potentially_runnable_resource_share();
// { dg-options "-O2" }
void IOException( char);
-inline int* dummy( const char* const mode )
+inline void dummy( const char* const mode )
{
IOException(*mode+*mode);
}
/* { dg-do compile } */
/* { dg-options "-O2" } */
+// { dg-additional-options "-Wno-return-type" }
namespace sigc {
template <class T_type> struct type_trait {
typedef T_type& pass;
/* { dg-do compile } */
/* { dg-options "-O2" } */
+/* { dg-additional-options "-Wno-return-type" } */
namespace Gambit
{
/* { dg-do compile } */
/* { dg-options "-O2" } */
+/* { dg-additional-options "-Wno-return-type" } */
namespace std
{
// PR tree-optimization/27548
// { dg-do compile }
// { dg-options "-O1" }
+// { dg-additional-options "-Wno-return-type" }
namespace Gambit
{
EXPRESS Express = {1.0, 2.0, 3.0, 4.0, 5.0};
Parse_Rel_Factor (Express, &Terms);
+ return 0.0;
}
// PR tree-optimize/42337
// { dg-do compile }
// { dg-options "-O2" }
+// { dg-additional-options "-Wno-return-type" }
template<class _T1, class _T2> struct pair {
_T2 second;
/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
int a[100];
void foo(int);
+
+int
main()
{
int i;
continue;
foo(i);
}
+
+ return 0;
}
// { dg-final { scan-tree-dump "continue heuristics" "profile_estimate" } }
C *d = new C (x, y);
if (d->c == nullptr)
delete d;
+
+ return 0;
}
C::~C ()
// PR sanitizer/65583
// { dg-do compile }
// { dg-options "-std=c++11 -fsanitize=undefined" }
+// { dg-additional-options "-Wno-return-type" }
namespace std
{
b = e (b, d);
b = e (b, c);
}
+
+ return 0.0;
}
void
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
struct A {
bool operator()(int p1, int p2) { return p1 && p2; }
// { dg-additional-options "-ffast-math -fopenmp-simd" }
// { dg-additional-options "-msse2" { target x86_64-*-* i?86-*-* } }
-inline void* my_alloc (__SIZE_TYPE__ bytes) {void *ptr; __builtin_posix_memalign (&ptr, bytes, 128);}
+inline void* my_alloc (__SIZE_TYPE__ bytes) {void *ptr; __builtin_posix_memalign (&ptr, bytes, 128); return 0; }
inline void my_free (void* memory) {__builtin_free (memory);}
float W[100];
// { dg-additional-options "-ffast-math -fopenmp-simd" }
// { dg-additional-options "-msse2" { target x86_64-*-* i?86-*-* } }
-inline void* my_alloc (__SIZE_TYPE__ bytes) {void *ptr; __builtin_posix_memalign (&ptr, bytes, 128);}
+inline void* my_alloc (__SIZE_TYPE__ bytes) {void *ptr; __builtin_posix_memalign (&ptr, bytes, 128); return 0; }
inline void my_free (void* memory) {__builtin_free (memory);}
template <typename T>
// PR c++/65168
// { dg-do compile { target c++11 } }
-// { dg-options -Waddress }
+// { dg-options "-Waddress -Wno-return-type" }
// We shouldn't warn in unevaluated context about the address of a reference
// always being true.
NULL && NULL; // No warning: converting NULL to bool is OK
}
-int warn_for___null()
+void warn_for___null()
{
int i = __null; // { dg-warning "" } converting __null to non-pointer type
float z = __null; // { dg-warning "" } converting __null to non-pointer type
int x = 1;
+int
main()
{
int *p = &x;
Foo::Compare<long int, int>(NULL, p); // { dg-warning "passing NULL to" }
Foo::Compare(NULL, p);
func1(NULL); // { dg-warning "passing NULL to" }
+
+ return 0;
}
int foo (int);
-int
+void
bar (int a, int b, int c)
{
foo (a & b ^ c); // { dg-warning "parentheses" "correct warning" }
int foo (int);
-int
+void
bar (int a, int b, int c)
{
foo (a + b & c); // { dg-warning "parentheses" "correct warning" }
int a, b, c;
-int
+void
bar (void)
{
if (a)
// C++ version of Wparentheses-11.c
int foo (int);
-int
+void
bar (int a, int b, int c)
{
foo (!a & b); /* { dg-warning "parentheses" "correct warning" } */
}
-int
+void
baz (int a, int b, int c)
{
foo (!a & (b << c));/* { dg-warning "parentheses" "correct warning" } */
int foo (int);
-int
+void
bar (int a, int b, int c)
{
foo (a <= b <= c); // { dg-warning "comparison" "correct warning" }
int foo (int);
-int
+void
bar (int a, int b, int c)
{
foo (a + b << c); // { dg-warning "parentheses" "correct warning" }
int foo (int);
-int
+void
bar (int a, int b, int c)
{
foo (a && b || c); // { dg-warning "parentheses" "correct warning" }
int foo (int);
-int
+void
bar (int a, int b, int c)
{
foo (a & b | c); // { dg-warning "parentheses" "correct warning" }
// Wshadows was giving warnings for nested function parameters in nested class
// or structure that we didn't want.
// { dg-do compile }
-// { dg-options "-Wshadow" }
+// { dg-options "-Wshadow -Wno-return-type" }
// PR c++/41825
int f (int n)
assert(0 <= x and x <= D);
}
-int ff(void) {
+void ff(void) {
f<unsigned char, 2>(5);
f<signed char, 2>(5);
}
void g(void) {
assert(0 <= D);
}
-int gg(void) {
+void gg(void) {
g<unsigned char, 2>();
}
assert(0 <= x and x <= D); // { dg-bogus "comparison is always true due to limited range of data type" }
}
-int ff(void) {
+void ff(void) {
f<unsigned char, 2>(5);
f<signed char, 2>(5);
}
void g(void) {
assert(0 <= D);
}
-int gg(void) {
+void gg(void) {
g<unsigned char, 2>();
}
assert(0 <= x and x <= D);
}
-int ff(void) {
+void ff(void) {
f<unsigned char, 2>(5);
f<signed char, 2>(5);
}
void g(void) {
assert(0 <= D);
}
-int gg(void) {
+void gg(void) {
g<unsigned char, 2>();
}
foo(2);
}
-int
+void
test0(void)
{
test0_tmpl<int>();
// PR c++/52718
-// { dg-options "-Wzero-as-null-pointer-constant" }
+// { dg-options "-Wzero-as-null-pointer-constant -Wno-return-type" }
struct foo
{
a::f() const
{
int (a::* b)() const = &f; // { dg-error "&a::f" }
+ return 0;
}
// { dg-do assemble }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated -Wno-return-type" }
// prms-id: 13417
class Foo {
// array bounds, and then force the array to be allocated on the stack instead
// of a register.
+int
main()
{
char i[1];
i[1] = 0;
+
+ return 0;
}
int i, j;
+int
main () {
struct Any *ap = (struct Any *)
__builtin_alloca (sizeof(struct Any));
// { dg-do assemble }
// { dg-options "-Wno-deprecated" }
-int f(int x) return y(x) { } // { dg-error "" }
+int f(int x) return y(x) { return 0; } // { dg-error "" }
extern "C" void abort ();
// { dg-do assemble }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated -Wno-return-type" }
extern "C" void abort();
// { dg-do assemble }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated -Wno-return-type" }
// Test that the named return value extension works when passed as a reference.
// Origin: Jason Merrill <jason@redhat.com>
// PRMS Id: 5371
// Bug: g++ screws up the alignment of buff and dies.
+int
main()
{
union {
};
void *p = buff;
+ return 0;
}
enum D { d1 = CHAR_MIN, d2 = CHAR_MAX };
enum E { e1 = CHAR_MIN, e2 = CHAR_MIN };
+int
main()
{
return (sizeof (A) != 4 || sizeof (B) != 4 || sizeof (C) != 8
# 200 "lineno2.C"
};
+int
main()
{
- undef1(); // { dg-error "" "" { target *-*-* } 204 }
+ undef1(); // { dg-error "" "" { target *-*-* } 205 }
+ return 0;
}
{
public:
# 200 "lineno3.C"
- int foo () { undef1(); } // { dg-error "" "" { target *-*-* } 200 }
+ void foo () { undef1(); } // { dg-error "" "" { target *-*-* } 200 }
// { dg-message "note" "note" { target *-*-* } 200 }
};
public:
# 200 "lineno4.C"
- int foo () { undef1(); } // { dg-error "" "" { target *-*-* } 200 }
+ void foo () { undef1(); } // { dg-error "" "" { target *-*-* } 200 }
// { dg-message "note" "note" { target *-*-* } 200 }
};
A() { i = 2; }
};
+int
main()
{
A *p = new A ();
+ return 0;
}
A* ap = new A (1);
A* ap2 = new A[3];
+int
main ()
{
if (ap->i != 1 || ap2[0].i != 42 || ap2[1].i != 42 || ap2[2].i != 42)
if (ap->i != 1 || ap2[0].i != 42 || ap2[1].i != 42 || ap2[2].i != 42)
return 1;
+
+ return 0;
}
void x::fun() { }
+int
main ()
{
float foo;
+ return 0;
}
template <class T>
struct A {
int i;
- Blarg () : i(0) { } // { dg-error "" }
+ Blarg () : i(0) { return 0; } // { dg-error "" }
};
return anExample.MixinFunc(1,A(0)).p;
}
+int
main ()
{
CExample c;
if (test(c) != &c)
return 1;
+
+ return 0;
}
void* junk() {
return __builtin_alloca(10);
}
-main() { printf ("PASS\n");}
+
+int
+main() { printf ("PASS\n"); return 0; }
enum E { A = 0x80000000, B = 0 };
+ int
main()
{
if (sizeof (E) != 4)
int i = v[v.size()+10];
}
+int
main()
{
Vector v(10);
// { dg-do assemble }
+// { dg-additional-options "-Wno-return-type" }
// GROUPS passed initialization
class Vector {
double *v;
// { dg-options "-pg -static" { target hppa*-*-hpux* } }
// GROUPS passed profiling
#include <stdio.h>
+
+int
main()
{
printf ("PASS\n");
+ return 0;
}
/* { dg-final { cleanup-profile-file } } */
int f (int count) { return (count); }
};
+int
main ()
{
Y<char> y;
+ return 0;
}
return x;
}
+int
main() {
X x = foo();
if (did_it)
abort ();
else
printf ("PASS\n");
+
+ return 0;
}
bool b = true;
bool c = (bool)(void (A::*)())0;
bool d = 256;
+
+int
main() {
if (!d) return 1;
if (!a) return 1;
if (!a2) return 1;
if (!a3) return 1;
if (!a5) return 1;
+
+ return 0;
}
}
}
+int
main (int argc, const char *argv[])
{
if (argc != 2)
void ee(int *) { }
+int
main() {
try {
foo();
#include <string>
-main() { }
+int main() { return 0; }
}
};
+int
main() {
try {
B b;
}
};
+int
main() {
try {
B b;
}
}
+int
main() {
Vector v(10);
f( v );
return 1;
}
-
-
-
exit (0); // double faults should call terminate
}
+int
main() {
std::set_terminate (my_terminate);
try {
}
};
+int
main() {
try {
try {
}
};
+int
main() {
try {
try {
class MyExceptionHandler { };
+int
main() {
try {
throw MyExceptionHandler();
class MyExceptionHandler { };
+int
main() {
try {
throw MyExceptionHandler();
class X { public: virtual void p() { } };
class Y : public X { public: virtual void p() { fail = 0; } };
+int
main()
{
try { Y y; throw y; }
}
};
+int
main() {
try {
A a[5];
// { dg-do assemble { target native } }
// { dg-options "-fexceptions -fPIC -S" }
+int
main() { throw 1; }
};
+int
main() {
try {
throw Foo();
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
+int
main() {
try {
throw 'a';
}
} d(42);
+int
main() {
try {
throw &d;
}
} b(42);
+int
main() {
try {
throw &b;
}
} b(42);
+int
main() {
try {
throw &b;
throw;
}
+int
main() {
try {
D d;
}
};
+int
main() {
try {
D d;
exit (0);
}
+int
main() {
try {
throw "";
template <class T> void foo(T) throw (int) { throw "Hi"; } // { dg-warning "deprecated" "" { target c++11 } }
+int
main() {
std::set_unexpected (my_unexpected);
try {
template <class T> void foo(T) throw (T) { throw "Hi"; } // { dg-warning "deprecated" "" { target c++11 } }
+int
main() {
std::set_unexpected (my_unexpected);
try {
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
+int
main() {
if (0)
throw 1 | 2;
int i;
+int
main() {
try {
try {
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
+int
main() throw () { }
}
#endif
+int
main() {
f.bar(foo::red);
}
class A { };
+int
main() {
int i = 1;
if (1 not_eq 1)
int A::foo() { return 42; }
+int
main() {
return A::foo() - 42;
}
// { dg-do assemble }
-// { dg-options "-Wno-deprecated -Wno-register -Wno-builtin-declaration-mismatch" }
+// { dg-options "-Wno-deprecated -Wno-register -Wno-builtin-declaration-mismatch -Wno-return-type" }
// { dg-error "limited range of data type" "16-bit target" { target xstormy16-*-* } 0 }
// prms-id: 700
+int
main()
{
Proc0();
return "stringify2";
}
+int
main()
{
X x;
cout << "y\n";
cout << y.stringify() << '\n';
cout << y.stringify2() << '\n';
+
+ return 0;
}
void foo() { D1::foo(); D2::foo(); }
};
+int
main() {
D1_2 h;
h.foo();
+ return 0;
}
// { dg-do assemble }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated -Wno-return-type" }
// Copyright (C) 1999, 2000, 2002 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// { dg-do assemble }
-// { dg-options "-O1 -Wno-deprecated" }
+// { dg-options "-O1 -Wno-deprecated -Wno-return-type" }
// Copyright (C) 1999, 2000, 2002 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
int bar() {
int baz(int(foo(0)));
int foo = baz;
+ return 0;
}
// Simplified from bug report by Trevor Taylor <ttaylor@powerup.com.au>
struct T {
- int operator()(int) { } // { dg-message "operator|candidate expects" }
+ int operator()(int) { return 0; } // { dg-message "operator|candidate expects" }
};
int main() {
T()(); // { dg-error "match" } no such operator
+ return 0;
}
lookup_t lookup;
NAMES_ITEM item ("one");
+
+int
main()
{
lookup.insert(pair<NAMES_ITEM,size_t>(item,0));
+ return 0;
}
-
return true;
}
+int
main ()
{
f (test);
AAA aaa;
+int
main ()
{
aaa.fff();
+ return 0;
}
{
};
+int
main ()
{
D<int> x;
+ return 0;
}
// { dg-final { cleanup-repo-files } }
// { dg-do assemble }
// { dg-options "-Wno-deprecated" }
+// { dg-additional-options "-Wno-return-type" }
/* bug.cc */
/* simple program to demonstrate the bug with named return values in gcc
*/
std::cout << x << std::endl;
y = x + test<int>(2);
std::cout << y << std::endl;
+ return 0;
}
y = tmp;
}
+int
main()
{
int i = 5;
int j = 7;
test_swap(i, j);
+ return 0;
}
/* { dg-final { cleanup-coverage-files } } */
/* { dg-do compile } */
/* { dg-options "-O2 -fnon-call-exceptions -ftrapv -fexceptions" } */
-int
+void
DrawChunk(int *tabSize, int x)
{
const int numEnds = 10;
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
/* We used to ICE because we removed the cast to List_linked*
in -[ListIndex_linked next]. */
/* Test demangling an Objective-C method in error messages. */
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
#include <objc/objc.h>
/* Test calling super from within a category method. */
/* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
#include <objc/objc.h>