g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
authorJason Merrill <jason@redhat.com>
Fri, 7 Mar 2014 20:01:12 +0000 (15:01 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 7 Mar 2014 20:01:12 +0000 (15:01 -0500)
* lib/g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
* lib/target-supports.exp (check_effective_target_c++11): Now
means C++11 and up.
(check_effective_target_c++11_only): New.
(check_effective_target_c++11_down): New.
(check_effective_target_c++1y): New.
(check_effective_target_c++1y_only): New.
(check_effective_target_c++98_only): Rename from
check_effective_target_c++98.
* g++.dg/*: Use { target c++11 } instead of -std=c++11.

From-SVN: r208416

1474 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/anon2.C
gcc/testsuite/g++.dg/abi/mangle32.C
gcc/testsuite/g++.dg/abi/mangle37.C
gcc/testsuite/g++.dg/abi/mangle39.C
gcc/testsuite/g++.dg/abi/mangle42.C
gcc/testsuite/g++.dg/abi/mangle45.C
gcc/testsuite/g++.dg/abi/mangle47.C
gcc/testsuite/g++.dg/abi/mangle48.C
gcc/testsuite/g++.dg/abi/mangle49.C
gcc/testsuite/g++.dg/abi/mangle50.C
gcc/testsuite/g++.dg/abi/mangle51.C
gcc/testsuite/g++.dg/abi/mangle53.C
gcc/testsuite/g++.dg/abi/mangle54.C
gcc/testsuite/g++.dg/abi/mangle55.C
gcc/testsuite/g++.dg/abi/mangle56.C
gcc/testsuite/g++.dg/abi/mangle57.C
gcc/testsuite/g++.dg/abi/mangle58.C
gcc/testsuite/g++.dg/abi/mangle59.C
gcc/testsuite/g++.dg/abi/regparm1.C
gcc/testsuite/g++.dg/cilk-plus/AN/braced_list.cc
gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns.cc
gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc
gcc/testsuite/g++.dg/constexpr-null1.C
gcc/testsuite/g++.dg/cpp/paste1.C
gcc/testsuite/g++.dg/cpp/paste2.C
gcc/testsuite/g++.dg/cpp/ucn-1.C
gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix.C
gcc/testsuite/g++.dg/cpp0x/Wunused-parm.C
gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-1.C
gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-2.C
gcc/testsuite/g++.dg/cpp0x/__func__.C
gcc/testsuite/g++.dg/cpp0x/access01.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-0.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-1.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-10.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-11.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-12.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-13.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-14.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-15.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-16.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-17.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-18.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-2.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-25.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-3.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-4.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-5.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-6.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-7.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-8.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-9.C
gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
gcc/testsuite/g++.dg/cpp0x/alignof.C
gcc/testsuite/g++.dg/cpp0x/alignof2.C
gcc/testsuite/g++.dg/cpp0x/alignof3.C
gcc/testsuite/g++.dg/cpp0x/alignof4.C
gcc/testsuite/g++.dg/cpp0x/auto1.C
gcc/testsuite/g++.dg/cpp0x/auto10.C
gcc/testsuite/g++.dg/cpp0x/auto11.C
gcc/testsuite/g++.dg/cpp0x/auto14.C
gcc/testsuite/g++.dg/cpp0x/auto15.C
gcc/testsuite/g++.dg/cpp0x/auto16.C
gcc/testsuite/g++.dg/cpp0x/auto17.C
gcc/testsuite/g++.dg/cpp0x/auto18.C
gcc/testsuite/g++.dg/cpp0x/auto19.C
gcc/testsuite/g++.dg/cpp0x/auto2.C
gcc/testsuite/g++.dg/cpp0x/auto20.C
gcc/testsuite/g++.dg/cpp0x/auto21.C
gcc/testsuite/g++.dg/cpp0x/auto22.C
gcc/testsuite/g++.dg/cpp0x/auto23.C
gcc/testsuite/g++.dg/cpp0x/auto24.C
gcc/testsuite/g++.dg/cpp0x/auto25.C
gcc/testsuite/g++.dg/cpp0x/auto26.C
gcc/testsuite/g++.dg/cpp0x/auto27.C
gcc/testsuite/g++.dg/cpp0x/auto28.C
gcc/testsuite/g++.dg/cpp0x/auto29.C
gcc/testsuite/g++.dg/cpp0x/auto3.C
gcc/testsuite/g++.dg/cpp0x/auto30.C
gcc/testsuite/g++.dg/cpp0x/auto36.C
gcc/testsuite/g++.dg/cpp0x/auto4.C
gcc/testsuite/g++.dg/cpp0x/auto41.C
gcc/testsuite/g++.dg/cpp0x/auto5.C
gcc/testsuite/g++.dg/cpp0x/auto7.C
gcc/testsuite/g++.dg/cpp0x/auto9.C
gcc/testsuite/g++.dg/cpp0x/bad_array_new1.C
gcc/testsuite/g++.dg/cpp0x/bad_array_new2.C
gcc/testsuite/g++.dg/cpp0x/bind.C
gcc/testsuite/g++.dg/cpp0x/bracket1.C
gcc/testsuite/g++.dg/cpp0x/bracket2.C
gcc/testsuite/g++.dg/cpp0x/bracket3.C
gcc/testsuite/g++.dg/cpp0x/bracket4.C
gcc/testsuite/g++.dg/cpp0x/cast-bug.C
gcc/testsuite/g++.dg/cpp0x/cast.C
gcc/testsuite/g++.dg/cpp0x/collapse-bug.C
gcc/testsuite/g++.dg/cpp0x/collapse.C
gcc/testsuite/g++.dg/cpp0x/constexpr-46336.C
gcc/testsuite/g++.dg/cpp0x/constexpr-46420.C
gcc/testsuite/g++.dg/cpp0x/constexpr-47570.C
gcc/testsuite/g++.dg/cpp0x/constexpr-47969.C
gcc/testsuite/g++.dg/cpp0x/constexpr-48089.C
gcc/testsuite/g++.dg/cpp0x/constexpr-49776.C
gcc/testsuite/g++.dg/cpp0x/constexpr-51369.C
gcc/testsuite/g++.dg/cpp0x/constexpr-52672.C
gcc/testsuite/g++.dg/cpp0x/constexpr-53094-1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-53094-3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-55573.C
gcc/testsuite/g++.dg/cpp0x/constexpr-56302.C
gcc/testsuite/g++.dg/cpp0x/constexpr-99.C
gcc/testsuite/g++.dg/cpp0x/constexpr-abi1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-access.C
gcc/testsuite/g++.dg/cpp0x/constexpr-and.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr6.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr7.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array-tparm.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-array4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-attribute.C
gcc/testsuite/g++.dg/cpp0x/constexpr-attribute2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-auto.C
gcc/testsuite/g++.dg/cpp0x/constexpr-base.C
gcc/testsuite/g++.dg/cpp0x/constexpr-base2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-base3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-base4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield.C
gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-builtin1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-cache1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-cleanup.C
gcc/testsuite/g++.dg/cpp0x/constexpr-complex.C
gcc/testsuite/g++.dg/cpp0x/constexpr-compound.C
gcc/testsuite/g++.dg/cpp0x/constexpr-condition.C
gcc/testsuite/g++.dg/cpp0x/constexpr-condition2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor10.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor11.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor12.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor13.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor6.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor7.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor8.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor9.C
gcc/testsuite/g++.dg/cpp0x/constexpr-data1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-data2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-decl.C
gcc/testsuite/g++.dg/cpp0x/constexpr-defarg.C
gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-default-ctor.C
gcc/testsuite/g++.dg/cpp0x/constexpr-delegating.C
gcc/testsuite/g++.dg/cpp0x/constexpr-delegating2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-delete.C
gcc/testsuite/g++.dg/cpp0x/constexpr-deref.C
gcc/testsuite/g++.dg/cpp0x/constexpr-diag1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-diag2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-diag3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-diag4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-diag5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-eh-spec.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ellipsis.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ellipsis2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-empty.C
gcc/testsuite/g++.dg/cpp0x/constexpr-empty2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-empty3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-empty4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-empty5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ex1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ex2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ex3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ex4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-expinst.C
gcc/testsuite/g++.dg/cpp0x/constexpr-explicit-inst.C
gcc/testsuite/g++.dg/cpp0x/constexpr-fnptr.C
gcc/testsuite/g++.dg/cpp0x/constexpr-friend.C
gcc/testsuite/g++.dg/cpp0x/constexpr-function1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-function3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-generated1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ice.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ice2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ice3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ice4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ice5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ice6.C
gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist.C
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist6.C
gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C
gcc/testsuite/g++.dg/cpp0x/constexpr-memfn1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-missing.C
gcc/testsuite/g++.dg/cpp0x/constexpr-mutable1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-neg1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept.C
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept6.C
gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg.C
gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-nonlit.C
gcc/testsuite/g++.dg/cpp0x/constexpr-nonlit2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-nonstatic.C
gcc/testsuite/g++.dg/cpp0x/constexpr-nullptr.C
gcc/testsuite/g++.dg/cpp0x/constexpr-object1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-object2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-overflow.C
gcc/testsuite/g++.dg/cpp0x/constexpr-overflow2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-pedantic.C
gcc/testsuite/g++.dg/cpp0x/constexpr-pos1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-potential1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ptrsub.C
gcc/testsuite/g++.dg/cpp0x/constexpr-pure.C
gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ref1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ref2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ref3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ref4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-rom.C
gcc/testsuite/g++.dg/cpp0x/constexpr-sassert.C
gcc/testsuite/g++.dg/cpp0x/constexpr-specialization.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static10.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static6.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static7.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C
gcc/testsuite/g++.dg/cpp0x/constexpr-stmtexpr.C
gcc/testsuite/g++.dg/cpp0x/constexpr-string.C
gcc/testsuite/g++.dg/cpp0x/constexpr-switch.C
gcc/testsuite/g++.dg/cpp0x/constexpr-switch2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-synth1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-targ.C
gcc/testsuite/g++.dg/cpp0x/constexpr-template1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-template2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-template3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-template6.C
gcc/testsuite/g++.dg/cpp0x/constexpr-throw.C
gcc/testsuite/g++.dg/cpp0x/constexpr-typedef1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-typeid.C
gcc/testsuite/g++.dg/cpp0x/constexpr-union.C
gcc/testsuite/g++.dg/cpp0x/constexpr-union2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-union3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-union5.C
gcc/testsuite/g++.dg/cpp0x/constexpr-using.C
gcc/testsuite/g++.dg/cpp0x/constexpr-using2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-value.C
gcc/testsuite/g++.dg/cpp0x/constexpr-value2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-value3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-variadic.C
gcc/testsuite/g++.dg/cpp0x/constexpr-virtual.C
gcc/testsuite/g++.dg/cpp0x/constexpr-virtual4.C
gcc/testsuite/g++.dg/cpp0x/constexpr-wstring1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-wstring2.C
gcc/testsuite/g++.dg/cpp0x/dc1.C
gcc/testsuite/g++.dg/cpp0x/dc2.C
gcc/testsuite/g++.dg/cpp0x/dc3.C
gcc/testsuite/g++.dg/cpp0x/dc5.C
gcc/testsuite/g++.dg/cpp0x/decltype-1212.C
gcc/testsuite/g++.dg/cpp0x/decltype-33837.C
gcc/testsuite/g++.dg/cpp0x/decltype-33838.C
gcc/testsuite/g++.dg/cpp0x/decltype-54581.C
gcc/testsuite/g++.dg/cpp0x/decltype-refbug.C
gcc/testsuite/g++.dg/cpp0x/decltype1.C
gcc/testsuite/g++.dg/cpp0x/decltype10.C
gcc/testsuite/g++.dg/cpp0x/decltype11.C
gcc/testsuite/g++.dg/cpp0x/decltype12.C
gcc/testsuite/g++.dg/cpp0x/decltype15.C
gcc/testsuite/g++.dg/cpp0x/decltype16.C
gcc/testsuite/g++.dg/cpp0x/decltype17.C
gcc/testsuite/g++.dg/cpp0x/decltype18.C
gcc/testsuite/g++.dg/cpp0x/decltype2.C
gcc/testsuite/g++.dg/cpp0x/decltype20.C
gcc/testsuite/g++.dg/cpp0x/decltype21.C
gcc/testsuite/g++.dg/cpp0x/decltype22.C
gcc/testsuite/g++.dg/cpp0x/decltype23.C
gcc/testsuite/g++.dg/cpp0x/decltype24.C
gcc/testsuite/g++.dg/cpp0x/decltype25.C
gcc/testsuite/g++.dg/cpp0x/decltype26.C
gcc/testsuite/g++.dg/cpp0x/decltype27.C
gcc/testsuite/g++.dg/cpp0x/decltype28.C
gcc/testsuite/g++.dg/cpp0x/decltype29.C
gcc/testsuite/g++.dg/cpp0x/decltype3.C
gcc/testsuite/g++.dg/cpp0x/decltype30.C
gcc/testsuite/g++.dg/cpp0x/decltype31.C
gcc/testsuite/g++.dg/cpp0x/decltype32.C
gcc/testsuite/g++.dg/cpp0x/decltype33.C
gcc/testsuite/g++.dg/cpp0x/decltype34.C
gcc/testsuite/g++.dg/cpp0x/decltype35.C
gcc/testsuite/g++.dg/cpp0x/decltype36.C
gcc/testsuite/g++.dg/cpp0x/decltype4.C
gcc/testsuite/g++.dg/cpp0x/decltype40.C
gcc/testsuite/g++.dg/cpp0x/decltype47.C
gcc/testsuite/g++.dg/cpp0x/decltype48.C
gcc/testsuite/g++.dg/cpp0x/decltype5.C
gcc/testsuite/g++.dg/cpp0x/decltype6.C
gcc/testsuite/g++.dg/cpp0x/decltype9.C
gcc/testsuite/g++.dg/cpp0x/deduce.C
gcc/testsuite/g++.dg/cpp0x/defaulted1.C
gcc/testsuite/g++.dg/cpp0x/defaulted10.C
gcc/testsuite/g++.dg/cpp0x/defaulted11.C
gcc/testsuite/g++.dg/cpp0x/defaulted13.C
gcc/testsuite/g++.dg/cpp0x/defaulted14.C
gcc/testsuite/g++.dg/cpp0x/defaulted15.C
gcc/testsuite/g++.dg/cpp0x/defaulted16.C
gcc/testsuite/g++.dg/cpp0x/defaulted17.C
gcc/testsuite/g++.dg/cpp0x/defaulted18.C
gcc/testsuite/g++.dg/cpp0x/defaulted19.C
gcc/testsuite/g++.dg/cpp0x/defaulted19a.C
gcc/testsuite/g++.dg/cpp0x/defaulted2.C
gcc/testsuite/g++.dg/cpp0x/defaulted20.C
gcc/testsuite/g++.dg/cpp0x/defaulted21.C
gcc/testsuite/g++.dg/cpp0x/defaulted22.C
gcc/testsuite/g++.dg/cpp0x/defaulted23.C
gcc/testsuite/g++.dg/cpp0x/defaulted24.C
gcc/testsuite/g++.dg/cpp0x/defaulted25.C
gcc/testsuite/g++.dg/cpp0x/defaulted26.C
gcc/testsuite/g++.dg/cpp0x/defaulted27.C
gcc/testsuite/g++.dg/cpp0x/defaulted28.C
gcc/testsuite/g++.dg/cpp0x/defaulted29.C
gcc/testsuite/g++.dg/cpp0x/defaulted3.C
gcc/testsuite/g++.dg/cpp0x/defaulted30.C
gcc/testsuite/g++.dg/cpp0x/defaulted31.C
gcc/testsuite/g++.dg/cpp0x/defaulted32.C
gcc/testsuite/g++.dg/cpp0x/defaulted34.C
gcc/testsuite/g++.dg/cpp0x/defaulted35.C
gcc/testsuite/g++.dg/cpp0x/defaulted39.C
gcc/testsuite/g++.dg/cpp0x/defaulted4.C
gcc/testsuite/g++.dg/cpp0x/defaulted40.C
gcc/testsuite/g++.dg/cpp0x/defaulted5.C
gcc/testsuite/g++.dg/cpp0x/defaulted6.C
gcc/testsuite/g++.dg/cpp0x/defaulted7.C
gcc/testsuite/g++.dg/cpp0x/defaulted8.C
gcc/testsuite/g++.dg/cpp0x/defaulted9.C
gcc/testsuite/g++.dg/cpp0x/dependent1.C
gcc/testsuite/g++.dg/cpp0x/diag1.C
gcc/testsuite/g++.dg/cpp0x/elision.C
gcc/testsuite/g++.dg/cpp0x/elision2.C
gcc/testsuite/g++.dg/cpp0x/elision_neg.C
gcc/testsuite/g++.dg/cpp0x/enum1.C
gcc/testsuite/g++.dg/cpp0x/enum10.C
gcc/testsuite/g++.dg/cpp0x/enum11.C
gcc/testsuite/g++.dg/cpp0x/enum12.C
gcc/testsuite/g++.dg/cpp0x/enum13.C
gcc/testsuite/g++.dg/cpp0x/enum14.C
gcc/testsuite/g++.dg/cpp0x/enum15.C
gcc/testsuite/g++.dg/cpp0x/enum16.C
gcc/testsuite/g++.dg/cpp0x/enum17.C
gcc/testsuite/g++.dg/cpp0x/enum18.C
gcc/testsuite/g++.dg/cpp0x/enum19.C
gcc/testsuite/g++.dg/cpp0x/enum2.C
gcc/testsuite/g++.dg/cpp0x/enum20.C
gcc/testsuite/g++.dg/cpp0x/enum21b.C
gcc/testsuite/g++.dg/cpp0x/enum26.C
gcc/testsuite/g++.dg/cpp0x/enum3.C
gcc/testsuite/g++.dg/cpp0x/enum4.C
gcc/testsuite/g++.dg/cpp0x/enum5.C
gcc/testsuite/g++.dg/cpp0x/enum6.C
gcc/testsuite/g++.dg/cpp0x/enum7.C
gcc/testsuite/g++.dg/cpp0x/enum8.C
gcc/testsuite/g++.dg/cpp0x/enum9.C
gcc/testsuite/g++.dg/cpp0x/enum_base.C
gcc/testsuite/g++.dg/cpp0x/enum_base_warn.C
gcc/testsuite/g++.dg/cpp0x/error1.C
gcc/testsuite/g++.dg/cpp0x/error2.C
gcc/testsuite/g++.dg/cpp0x/error3.C
gcc/testsuite/g++.dg/cpp0x/error4.C
gcc/testsuite/g++.dg/cpp0x/error5.C
gcc/testsuite/g++.dg/cpp0x/error6.C
gcc/testsuite/g++.dg/cpp0x/error7.C
gcc/testsuite/g++.dg/cpp0x/explicit1.C
gcc/testsuite/g++.dg/cpp0x/explicit2.C
gcc/testsuite/g++.dg/cpp0x/explicit3.C
gcc/testsuite/g++.dg/cpp0x/explicit4.C
gcc/testsuite/g++.dg/cpp0x/explicit5.C
gcc/testsuite/g++.dg/cpp0x/explicit6.C
gcc/testsuite/g++.dg/cpp0x/explicit7.C
gcc/testsuite/g++.dg/cpp0x/extern_template-1.C
gcc/testsuite/g++.dg/cpp0x/extern_template-2.C
gcc/testsuite/g++.dg/cpp0x/fntmpdefarg1.C
gcc/testsuite/g++.dg/cpp0x/fntmpdefarg2.C
gcc/testsuite/g++.dg/cpp0x/fntmpdefarg4.C
gcc/testsuite/g++.dg/cpp0x/forw_enum1.C
gcc/testsuite/g++.dg/cpp0x/forw_enum10.C
gcc/testsuite/g++.dg/cpp0x/forw_enum2.C
gcc/testsuite/g++.dg/cpp0x/forw_enum3.C
gcc/testsuite/g++.dg/cpp0x/forw_enum4.C
gcc/testsuite/g++.dg/cpp0x/forw_enum5.C
gcc/testsuite/g++.dg/cpp0x/forw_enum6.C
gcc/testsuite/g++.dg/cpp0x/forw_enum7.C
gcc/testsuite/g++.dg/cpp0x/forw_enum8.C
gcc/testsuite/g++.dg/cpp0x/forw_enum9.C
gcc/testsuite/g++.dg/cpp0x/friend1.C
gcc/testsuite/g++.dg/cpp0x/friend2.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-35.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-36.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-4.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-42.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C
gcc/testsuite/g++.dg/cpp0x/gnu_fext-numeric-literals.C
gcc/testsuite/g++.dg/cpp0x/gnu_fno-ext-numeric-literals.C
gcc/testsuite/g++.dg/cpp0x/implicit-copy.C
gcc/testsuite/g++.dg/cpp0x/implicit-trivial1.C
gcc/testsuite/g++.dg/cpp0x/implicit1.C
gcc/testsuite/g++.dg/cpp0x/implicit10.C
gcc/testsuite/g++.dg/cpp0x/implicit11.C
gcc/testsuite/g++.dg/cpp0x/implicit12.C
gcc/testsuite/g++.dg/cpp0x/implicit2.C
gcc/testsuite/g++.dg/cpp0x/implicit3.C
gcc/testsuite/g++.dg/cpp0x/implicit4.C
gcc/testsuite/g++.dg/cpp0x/implicit5.C
gcc/testsuite/g++.dg/cpp0x/implicit6.C
gcc/testsuite/g++.dg/cpp0x/implicit7.C
gcc/testsuite/g++.dg/cpp0x/implicit8.C
gcc/testsuite/g++.dg/cpp0x/implicit9.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor1.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor10.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor11.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor12.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor13.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor14.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor15.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor16.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor2.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor3.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor4.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor5.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor6.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor7.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor8.C
gcc/testsuite/g++.dg/cpp0x/inh-ctor9.C
gcc/testsuite/g++.dg/cpp0x/initlist-array2.C
gcc/testsuite/g++.dg/cpp0x/initlist-arrray1.C
gcc/testsuite/g++.dg/cpp0x/initlist-ctor1.C
gcc/testsuite/g++.dg/cpp0x/initlist-deduce.C
gcc/testsuite/g++.dg/cpp0x/initlist-explicit-sfinae.C
gcc/testsuite/g++.dg/cpp0x/initlist-lifetime1.C
gcc/testsuite/g++.dg/cpp0x/initlist-lifetime2.C
gcc/testsuite/g++.dg/cpp0x/initlist-opt.C
gcc/testsuite/g++.dg/cpp0x/initlist-postfix-open-square.C
gcc/testsuite/g++.dg/cpp0x/initlist-protected.C
gcc/testsuite/g++.dg/cpp0x/initlist-pure.C
gcc/testsuite/g++.dg/cpp0x/initlist-value.C
gcc/testsuite/g++.dg/cpp0x/initlist-value2.C
gcc/testsuite/g++.dg/cpp0x/initlist1.C
gcc/testsuite/g++.dg/cpp0x/initlist10.C
gcc/testsuite/g++.dg/cpp0x/initlist11.C
gcc/testsuite/g++.dg/cpp0x/initlist12.C
gcc/testsuite/g++.dg/cpp0x/initlist13.C
gcc/testsuite/g++.dg/cpp0x/initlist14.C
gcc/testsuite/g++.dg/cpp0x/initlist15.C
gcc/testsuite/g++.dg/cpp0x/initlist16.C
gcc/testsuite/g++.dg/cpp0x/initlist17.C
gcc/testsuite/g++.dg/cpp0x/initlist18.C
gcc/testsuite/g++.dg/cpp0x/initlist19.C
gcc/testsuite/g++.dg/cpp0x/initlist2.C
gcc/testsuite/g++.dg/cpp0x/initlist20.C
gcc/testsuite/g++.dg/cpp0x/initlist21.C
gcc/testsuite/g++.dg/cpp0x/initlist22.C
gcc/testsuite/g++.dg/cpp0x/initlist23.C
gcc/testsuite/g++.dg/cpp0x/initlist24.C
gcc/testsuite/g++.dg/cpp0x/initlist25.C
gcc/testsuite/g++.dg/cpp0x/initlist26.C
gcc/testsuite/g++.dg/cpp0x/initlist27.C
gcc/testsuite/g++.dg/cpp0x/initlist28.C
gcc/testsuite/g++.dg/cpp0x/initlist29.C
gcc/testsuite/g++.dg/cpp0x/initlist3.C
gcc/testsuite/g++.dg/cpp0x/initlist30.C
gcc/testsuite/g++.dg/cpp0x/initlist31.C
gcc/testsuite/g++.dg/cpp0x/initlist32.C
gcc/testsuite/g++.dg/cpp0x/initlist33.C
gcc/testsuite/g++.dg/cpp0x/initlist34.C
gcc/testsuite/g++.dg/cpp0x/initlist35.C
gcc/testsuite/g++.dg/cpp0x/initlist36.C
gcc/testsuite/g++.dg/cpp0x/initlist37.C
gcc/testsuite/g++.dg/cpp0x/initlist38.C
gcc/testsuite/g++.dg/cpp0x/initlist39.C
gcc/testsuite/g++.dg/cpp0x/initlist4.C
gcc/testsuite/g++.dg/cpp0x/initlist40.C
gcc/testsuite/g++.dg/cpp0x/initlist41.C
gcc/testsuite/g++.dg/cpp0x/initlist42.C
gcc/testsuite/g++.dg/cpp0x/initlist43.C
gcc/testsuite/g++.dg/cpp0x/initlist44.C
gcc/testsuite/g++.dg/cpp0x/initlist45.C
gcc/testsuite/g++.dg/cpp0x/initlist46.C
gcc/testsuite/g++.dg/cpp0x/initlist47.C
gcc/testsuite/g++.dg/cpp0x/initlist48.C
gcc/testsuite/g++.dg/cpp0x/initlist49.C
gcc/testsuite/g++.dg/cpp0x/initlist5.C
gcc/testsuite/g++.dg/cpp0x/initlist50.C
gcc/testsuite/g++.dg/cpp0x/initlist51.C
gcc/testsuite/g++.dg/cpp0x/initlist52.C
gcc/testsuite/g++.dg/cpp0x/initlist53.C
gcc/testsuite/g++.dg/cpp0x/initlist54.C
gcc/testsuite/g++.dg/cpp0x/initlist55.C
gcc/testsuite/g++.dg/cpp0x/initlist56.C
gcc/testsuite/g++.dg/cpp0x/initlist57.C
gcc/testsuite/g++.dg/cpp0x/initlist58.C
gcc/testsuite/g++.dg/cpp0x/initlist59.C
gcc/testsuite/g++.dg/cpp0x/initlist6.C
gcc/testsuite/g++.dg/cpp0x/initlist62.C
gcc/testsuite/g++.dg/cpp0x/initlist63.C
gcc/testsuite/g++.dg/cpp0x/initlist64.C
gcc/testsuite/g++.dg/cpp0x/initlist65.C
gcc/testsuite/g++.dg/cpp0x/initlist7.C
gcc/testsuite/g++.dg/cpp0x/initlist8.C
gcc/testsuite/g++.dg/cpp0x/initlist9.C
gcc/testsuite/g++.dg/cpp0x/inline-ns1.C
gcc/testsuite/g++.dg/cpp0x/inline-ns2.C
gcc/testsuite/g++.dg/cpp0x/inline-ns3.C
gcc/testsuite/g++.dg/cpp0x/iop.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-50220.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-__func__.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-array.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-auto1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-redundancy.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv4.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv5.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv6.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-copy-default-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-copy-default.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-copy-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-copy.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ctor-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ctors.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-debug.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-decltype1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce-ext-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce-ext-neg2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-direct-init.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-eh.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-eh2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-errloc.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-errloc2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-field-names.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-for.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice4.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice5.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice6.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice7.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-initlist1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-initlist2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-lookup-neg.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-names1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested4.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-const.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nop.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ns-scope.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-pass.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-qualified.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-recursive.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref-default.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-shadow1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-shadow2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-std-function.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-syntax1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template10.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this4.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this6.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this7.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-type.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-uneval.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-use.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-use2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn3.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn4.C
gcc/testsuite/g++.dg/cpp0x/linkage2.C
gcc/testsuite/g++.dg/cpp0x/long_long.C
gcc/testsuite/g++.dg/cpp0x/move1.C
gcc/testsuite/g++.dg/cpp0x/named.C
gcc/testsuite/g++.dg/cpp0x/named_refs.C
gcc/testsuite/g++.dg/cpp0x/noexcept01.C
gcc/testsuite/g++.dg/cpp0x/noexcept02.C
gcc/testsuite/g++.dg/cpp0x/noexcept03.C
gcc/testsuite/g++.dg/cpp0x/noexcept04.C
gcc/testsuite/g++.dg/cpp0x/noexcept05.C
gcc/testsuite/g++.dg/cpp0x/noexcept06.C
gcc/testsuite/g++.dg/cpp0x/noexcept07.C
gcc/testsuite/g++.dg/cpp0x/noexcept08.C
gcc/testsuite/g++.dg/cpp0x/noexcept09.C
gcc/testsuite/g++.dg/cpp0x/noexcept10.C
gcc/testsuite/g++.dg/cpp0x/noexcept11.C
gcc/testsuite/g++.dg/cpp0x/noexcept12.C
gcc/testsuite/g++.dg/cpp0x/noexcept13.C
gcc/testsuite/g++.dg/cpp0x/noexcept14.C
gcc/testsuite/g++.dg/cpp0x/noexcept15.C
gcc/testsuite/g++.dg/cpp0x/noexcept17.C
gcc/testsuite/g++.dg/cpp0x/noexcept18.C
gcc/testsuite/g++.dg/cpp0x/noexcept19.C
gcc/testsuite/g++.dg/cpp0x/noexcept20.C
gcc/testsuite/g++.dg/cpp0x/nolinkage1.C
gcc/testsuite/g++.dg/cpp0x/not_special.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-const1.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-defer1.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-defer2.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-defer3.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-defer4.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-defer5.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-eh1.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-list1.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-list2.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-template1.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-template2.C
gcc/testsuite/g++.dg/cpp0x/nsdmi-virtual1.C
gcc/testsuite/g++.dg/cpp0x/nsdmi1.C
gcc/testsuite/g++.dg/cpp0x/nsdmi2.C
gcc/testsuite/g++.dg/cpp0x/nsdmi3.C
gcc/testsuite/g++.dg/cpp0x/nsdmi4.C
gcc/testsuite/g++.dg/cpp0x/nsdmi5.C
gcc/testsuite/g++.dg/cpp0x/nsdmi6.C
gcc/testsuite/g++.dg/cpp0x/nsdmi7.C
gcc/testsuite/g++.dg/cpp0x/nullptr01.C
gcc/testsuite/g++.dg/cpp0x/nullptr02.C
gcc/testsuite/g++.dg/cpp0x/nullptr03.C
gcc/testsuite/g++.dg/cpp0x/nullptr04.C
gcc/testsuite/g++.dg/cpp0x/nullptr05.C
gcc/testsuite/g++.dg/cpp0x/nullptr06.C
gcc/testsuite/g++.dg/cpp0x/nullptr07.C
gcc/testsuite/g++.dg/cpp0x/nullptr08.C
gcc/testsuite/g++.dg/cpp0x/nullptr09.C
gcc/testsuite/g++.dg/cpp0x/nullptr10.C
gcc/testsuite/g++.dg/cpp0x/nullptr11.C
gcc/testsuite/g++.dg/cpp0x/nullptr12.C
gcc/testsuite/g++.dg/cpp0x/nullptr13.C
gcc/testsuite/g++.dg/cpp0x/nullptr14.C
gcc/testsuite/g++.dg/cpp0x/nullptr15.C
gcc/testsuite/g++.dg/cpp0x/nullptr16.C
gcc/testsuite/g++.dg/cpp0x/nullptr17.C
gcc/testsuite/g++.dg/cpp0x/nullptr18.C
gcc/testsuite/g++.dg/cpp0x/nullptr19.C
gcc/testsuite/g++.dg/cpp0x/nullptr20.C
gcc/testsuite/g++.dg/cpp0x/nullptr21.C
gcc/testsuite/g++.dg/cpp0x/nullptr22.C
gcc/testsuite/g++.dg/cpp0x/nullptr23.C
gcc/testsuite/g++.dg/cpp0x/nullptr24.C
gcc/testsuite/g++.dg/cpp0x/nullptr25.C
gcc/testsuite/g++.dg/cpp0x/nullptr26.C
gcc/testsuite/g++.dg/cpp0x/nullptr27.C
gcc/testsuite/g++.dg/cpp0x/nullptr29.C
gcc/testsuite/g++.dg/cpp0x/overload-conv-1.C
gcc/testsuite/g++.dg/cpp0x/overload-conv-2.C
gcc/testsuite/g++.dg/cpp0x/overload.C
gcc/testsuite/g++.dg/cpp0x/overload2.C
gcc/testsuite/g++.dg/cpp0x/overload3.C
gcc/testsuite/g++.dg/cpp0x/overloadn.C
gcc/testsuite/g++.dg/cpp0x/override1.C
gcc/testsuite/g++.dg/cpp0x/override2.C
gcc/testsuite/g++.dg/cpp0x/override4.C
gcc/testsuite/g++.dg/cpp0x/parse1.C
gcc/testsuite/g++.dg/cpp0x/pr31431-2.C
gcc/testsuite/g++.dg/cpp0x/pr31431.C
gcc/testsuite/g++.dg/cpp0x/pr31432.C
gcc/testsuite/g++.dg/cpp0x/pr31434.C
gcc/testsuite/g++.dg/cpp0x/pr31437.C
gcc/testsuite/g++.dg/cpp0x/pr31438.C
gcc/testsuite/g++.dg/cpp0x/pr31439.C
gcc/testsuite/g++.dg/cpp0x/pr31442.C
gcc/testsuite/g++.dg/cpp0x/pr31443.C
gcc/testsuite/g++.dg/cpp0x/pr31444.C
gcc/testsuite/g++.dg/cpp0x/pr31445.C
gcc/testsuite/g++.dg/cpp0x/pr31993.C
gcc/testsuite/g++.dg/cpp0x/pr32114.C
gcc/testsuite/g++.dg/cpp0x/pr32115.C
gcc/testsuite/g++.dg/cpp0x/pr32125.C
gcc/testsuite/g++.dg/cpp0x/pr32126.C
gcc/testsuite/g++.dg/cpp0x/pr32127.C
gcc/testsuite/g++.dg/cpp0x/pr32128.C
gcc/testsuite/g++.dg/cpp0x/pr32252.C
gcc/testsuite/g++.dg/cpp0x/pr32253.C
gcc/testsuite/g++.dg/cpp0x/pr32566.C
gcc/testsuite/g++.dg/cpp0x/pr33839.C
gcc/testsuite/g++.dg/cpp0x/pr33930.C
gcc/testsuite/g++.dg/cpp0x/pr33955.C
gcc/testsuite/g++.dg/cpp0x/pr33996.C
gcc/testsuite/g++.dg/cpp0x/pr34054.C
gcc/testsuite/g++.dg/cpp0x/pr34056.C
gcc/testsuite/g++.dg/cpp0x/pr34057.C
gcc/testsuite/g++.dg/cpp0x/pr34058.C
gcc/testsuite/g++.dg/cpp0x/pr34060.C
gcc/testsuite/g++.dg/cpp0x/pr34061.C
gcc/testsuite/g++.dg/cpp0x/pr38646.C
gcc/testsuite/g++.dg/cpp0x/pr38795.C
gcc/testsuite/g++.dg/cpp0x/pr39639.C
gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
gcc/testsuite/g++.dg/cpp0x/pr45908.C
gcc/testsuite/g++.dg/cpp0x/pr47416.C
gcc/testsuite/g++.dg/cpp0x/pr47476.C
gcc/testsuite/g++.dg/cpp0x/pr48522.C
gcc/testsuite/g++.dg/cpp0x/pr50025.C
gcc/testsuite/g++.dg/cpp0x/pr50491.C
gcc/testsuite/g++.dg/cpp0x/pr50901.C
gcc/testsuite/g++.dg/cpp0x/pr51150.C
gcc/testsuite/g++.dg/cpp0x/pr51216.C
gcc/testsuite/g++.dg/cpp0x/pr51225.C
gcc/testsuite/g++.dg/cpp0x/pr51313.C
gcc/testsuite/g++.dg/cpp0x/pr51420.C
gcc/testsuite/g++.dg/cpp0x/pr51463.C
gcc/testsuite/g++.dg/cpp0x/pr51547.C
gcc/testsuite/g++.dg/cpp0x/pr51619.C
gcc/testsuite/g++.dg/cpp0x/pr57101.C
gcc/testsuite/g++.dg/cpp0x/pr57981.C
gcc/testsuite/g++.dg/cpp0x/pr58072.C
gcc/testsuite/g++.dg/cpp0x/pr59111.C
gcc/testsuite/g++.dg/cpp0x/pr59641.C
gcc/testsuite/g++.dg/cpp0x/ptrmem-cst-arg1.C
gcc/testsuite/g++.dg/cpp0x/range-for1.C
gcc/testsuite/g++.dg/cpp0x/range-for10.C
gcc/testsuite/g++.dg/cpp0x/range-for11.C
gcc/testsuite/g++.dg/cpp0x/range-for12.C
gcc/testsuite/g++.dg/cpp0x/range-for13.C
gcc/testsuite/g++.dg/cpp0x/range-for14.C
gcc/testsuite/g++.dg/cpp0x/range-for15.C
gcc/testsuite/g++.dg/cpp0x/range-for16.C
gcc/testsuite/g++.dg/cpp0x/range-for17.C
gcc/testsuite/g++.dg/cpp0x/range-for18.C
gcc/testsuite/g++.dg/cpp0x/range-for19.C
gcc/testsuite/g++.dg/cpp0x/range-for2.C
gcc/testsuite/g++.dg/cpp0x/range-for20.C
gcc/testsuite/g++.dg/cpp0x/range-for21.C
gcc/testsuite/g++.dg/cpp0x/range-for22.C
gcc/testsuite/g++.dg/cpp0x/range-for3.C
gcc/testsuite/g++.dg/cpp0x/range-for4.C
gcc/testsuite/g++.dg/cpp0x/range-for5.C
gcc/testsuite/g++.dg/cpp0x/range-for6.C
gcc/testsuite/g++.dg/cpp0x/range-for7.C
gcc/testsuite/g++.dg/cpp0x/range-for8.C
gcc/testsuite/g++.dg/cpp0x/reference_collapsing.C
gcc/testsuite/g++.dg/cpp0x/regress/README [deleted file]
gcc/testsuite/g++.dg/cpp0x/regress/abi-empty7.C [deleted file]
gcc/testsuite/g++.dg/cpp0x/regress/debug-debug7.C [deleted file]
gcc/testsuite/g++.dg/cpp0x/regress/error-recovery1.C [deleted file]
gcc/testsuite/g++.dg/cpp0x/regress/ext-cond1.C [deleted file]
gcc/testsuite/g++.dg/cpp0x/regress/ext-label10.C [deleted file]
gcc/testsuite/g++.dg/cpp0x/regress/parse-ambig5.C [deleted file]
gcc/testsuite/g++.dg/cpp0x/regress/template-function1.C [deleted file]
gcc/testsuite/g++.dg/cpp0x/rv-bitfield.C
gcc/testsuite/g++.dg/cpp0x/rv-bitfield2.C
gcc/testsuite/g++.dg/cpp0x/rv-cast.C
gcc/testsuite/g++.dg/cpp0x/rv-cast2.C
gcc/testsuite/g++.dg/cpp0x/rv-conv1.C
gcc/testsuite/g++.dg/cpp0x/rv-deduce.C
gcc/testsuite/g++.dg/cpp0x/rv-deduce2.C
gcc/testsuite/g++.dg/cpp0x/rv-dotstar.C
gcc/testsuite/g++.dg/cpp0x/rv-func.C
gcc/testsuite/g++.dg/cpp0x/rv-func2.C
gcc/testsuite/g++.dg/cpp0x/rv-func3.C
gcc/testsuite/g++.dg/cpp0x/rv-lvalue-req.C
gcc/testsuite/g++.dg/cpp0x/rv-reinterpret.C
gcc/testsuite/g++.dg/cpp0x/rv-restrict.C
gcc/testsuite/g++.dg/cpp0x/rv-return.C
gcc/testsuite/g++.dg/cpp0x/rv-template1.C
gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C
gcc/testsuite/g++.dg/cpp0x/rv10.C
gcc/testsuite/g++.dg/cpp0x/rv1n.C
gcc/testsuite/g++.dg/cpp0x/rv1p.C
gcc/testsuite/g++.dg/cpp0x/rv2n.C
gcc/testsuite/g++.dg/cpp0x/rv2p.C
gcc/testsuite/g++.dg/cpp0x/rv3n.C
gcc/testsuite/g++.dg/cpp0x/rv3p.C
gcc/testsuite/g++.dg/cpp0x/rv4n.C
gcc/testsuite/g++.dg/cpp0x/rv4p.C
gcc/testsuite/g++.dg/cpp0x/rv5n.C
gcc/testsuite/g++.dg/cpp0x/rv5p.C
gcc/testsuite/g++.dg/cpp0x/rv6n.C
gcc/testsuite/g++.dg/cpp0x/rv6p.C
gcc/testsuite/g++.dg/cpp0x/rv7n.C
gcc/testsuite/g++.dg/cpp0x/rv7p.C
gcc/testsuite/g++.dg/cpp0x/rv8p.C
gcc/testsuite/g++.dg/cpp0x/rv9p.C
gcc/testsuite/g++.dg/cpp0x/rvo.C
gcc/testsuite/g++.dg/cpp0x/scoped_enum.C
gcc/testsuite/g++.dg/cpp0x/scoped_enum2.C
gcc/testsuite/g++.dg/cpp0x/scoped_enum_examples.C
gcc/testsuite/g++.dg/cpp0x/sfinae1.C
gcc/testsuite/g++.dg/cpp0x/sfinae10.C
gcc/testsuite/g++.dg/cpp0x/sfinae11.C
gcc/testsuite/g++.dg/cpp0x/sfinae12.C
gcc/testsuite/g++.dg/cpp0x/sfinae13.C
gcc/testsuite/g++.dg/cpp0x/sfinae14.C
gcc/testsuite/g++.dg/cpp0x/sfinae15.C
gcc/testsuite/g++.dg/cpp0x/sfinae16.C
gcc/testsuite/g++.dg/cpp0x/sfinae17.C
gcc/testsuite/g++.dg/cpp0x/sfinae18.C
gcc/testsuite/g++.dg/cpp0x/sfinae19.C
gcc/testsuite/g++.dg/cpp0x/sfinae2.C
gcc/testsuite/g++.dg/cpp0x/sfinae20.C
gcc/testsuite/g++.dg/cpp0x/sfinae21.C
gcc/testsuite/g++.dg/cpp0x/sfinae22.C
gcc/testsuite/g++.dg/cpp0x/sfinae23.C
gcc/testsuite/g++.dg/cpp0x/sfinae24.C
gcc/testsuite/g++.dg/cpp0x/sfinae25.C
gcc/testsuite/g++.dg/cpp0x/sfinae26.C
gcc/testsuite/g++.dg/cpp0x/sfinae27.C
gcc/testsuite/g++.dg/cpp0x/sfinae28.C
gcc/testsuite/g++.dg/cpp0x/sfinae29.C
gcc/testsuite/g++.dg/cpp0x/sfinae3.C
gcc/testsuite/g++.dg/cpp0x/sfinae31.C
gcc/testsuite/g++.dg/cpp0x/sfinae32.C
gcc/testsuite/g++.dg/cpp0x/sfinae33.C
gcc/testsuite/g++.dg/cpp0x/sfinae34.C
gcc/testsuite/g++.dg/cpp0x/sfinae35.C
gcc/testsuite/g++.dg/cpp0x/sfinae36.C
gcc/testsuite/g++.dg/cpp0x/sfinae4.C
gcc/testsuite/g++.dg/cpp0x/sfinae43.C
gcc/testsuite/g++.dg/cpp0x/sfinae5.C
gcc/testsuite/g++.dg/cpp0x/sfinae6.C
gcc/testsuite/g++.dg/cpp0x/sfinae7.C
gcc/testsuite/g++.dg/cpp0x/sfinae8.C
gcc/testsuite/g++.dg/cpp0x/sfinae9.C
gcc/testsuite/g++.dg/cpp0x/static_assert1.C
gcc/testsuite/g++.dg/cpp0x/static_assert2.C
gcc/testsuite/g++.dg/cpp0x/static_assert3.C
gcc/testsuite/g++.dg/cpp0x/static_assert4.C
gcc/testsuite/g++.dg/cpp0x/static_assert5.C
gcc/testsuite/g++.dg/cpp0x/static_assert6.C
gcc/testsuite/g++.dg/cpp0x/static_assert7.C
gcc/testsuite/g++.dg/cpp0x/std-layout1.C
gcc/testsuite/g++.dg/cpp0x/std_fext-numeric-literals.C
gcc/testsuite/g++.dg/cpp0x/std_fno-ext-numeric-literals.C
gcc/testsuite/g++.dg/cpp0x/syntax-err1.C
gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C
gcc/testsuite/g++.dg/cpp0x/temp-va-arg-bug.C
gcc/testsuite/g++.dg/cpp0x/temp_default1.C
gcc/testsuite/g++.dg/cpp0x/temp_default2.C
gcc/testsuite/g++.dg/cpp0x/temp_default3.C
gcc/testsuite/g++.dg/cpp0x/temp_default4.C
gcc/testsuite/g++.dg/cpp0x/temp_default5.C
gcc/testsuite/g++.dg/cpp0x/template_deduction.C
gcc/testsuite/g++.dg/cpp0x/trailing1.C
gcc/testsuite/g++.dg/cpp0x/trailing2.C
gcc/testsuite/g++.dg/cpp0x/trailing3.C
gcc/testsuite/g++.dg/cpp0x/trailing4.C
gcc/testsuite/g++.dg/cpp0x/trailing5.C
gcc/testsuite/g++.dg/cpp0x/trailing6.C
gcc/testsuite/g++.dg/cpp0x/trailing7.C
gcc/testsuite/g++.dg/cpp0x/trivial1.C
gcc/testsuite/g++.dg/cpp0x/udlit-addr.C
gcc/testsuite/g++.dg/cpp0x/udlit-args-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-args.C
gcc/testsuite/g++.dg/cpp0x/udlit-args2.C
gcc/testsuite/g++.dg/cpp0x/udlit-clink-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-concat.C
gcc/testsuite/g++.dg/cpp0x/udlit-constexpr.C
gcc/testsuite/g++.dg/cpp0x/udlit-declare-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C
gcc/testsuite/g++.dg/cpp0x/udlit-friend.C
gcc/testsuite/g++.dg/cpp0x/udlit-general.C
gcc/testsuite/g++.dg/cpp0x/udlit-implicit-conv-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-inline.C
gcc/testsuite/g++.dg/cpp0x/udlit-linkage-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-mangle.C
gcc/testsuite/g++.dg/cpp0x/udlit-member-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-namespace.C
gcc/testsuite/g++.dg/cpp0x/udlit-nofunc-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-nonempty-str-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-nospace-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-nosuffix-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-nounder-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-operator-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-overflow-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-overflow.C
gcc/testsuite/g++.dg/cpp0x/udlit-preproc-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-raw-length.C
gcc/testsuite/g++.dg/cpp0x/udlit-raw-op-string-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C
gcc/testsuite/g++.dg/cpp0x/udlit-raw-str.C
gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C
gcc/testsuite/g++.dg/cpp0x/udlit-shadow-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-string-length.C
gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C
gcc/testsuite/g++.dg/cpp0x/udlit-suffix-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-systemheader.C
gcc/testsuite/g++.dg/cpp0x/udlit-template.C
gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-arg-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-arg.C
gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-parms-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-parms.C
gcc/testsuite/g++.dg/cpp0x/union1.C
gcc/testsuite/g++.dg/cpp0x/union2.C
gcc/testsuite/g++.dg/cpp0x/union3.C
gcc/testsuite/g++.dg/cpp0x/union4.C
gcc/testsuite/g++.dg/cpp0x/union5.C
gcc/testsuite/g++.dg/cpp0x/unnamed_refs.C
gcc/testsuite/g++.dg/cpp0x/variadic-104.C
gcc/testsuite/g++.dg/cpp0x/variadic-bind.C
gcc/testsuite/g++.dg/cpp0x/variadic-crash1.C
gcc/testsuite/g++.dg/cpp0x/variadic-crash2.C
gcc/testsuite/g++.dg/cpp0x/variadic-default.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex1.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex10.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex11.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex12.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex13.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex14.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex2.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex3.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex4.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex5.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex6.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex7.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex8.C
gcc/testsuite/g++.dg/cpp0x/variadic-ex9.C
gcc/testsuite/g++.dg/cpp0x/variadic-explicit1.C
gcc/testsuite/g++.dg/cpp0x/variadic-function.C
gcc/testsuite/g++.dg/cpp0x/variadic-init.C
gcc/testsuite/g++.dg/cpp0x/variadic-lambda.C
gcc/testsuite/g++.dg/cpp0x/variadic-mem_fn.C
gcc/testsuite/g++.dg/cpp0x/variadic-new.C
gcc/testsuite/g++.dg/cpp0x/variadic-new2.C
gcc/testsuite/g++.dg/cpp0x/variadic-nondeduce1.C
gcc/testsuite/g++.dg/cpp0x/variadic-rref.C
gcc/testsuite/g++.dg/cpp0x/variadic-throw.C
gcc/testsuite/g++.dg/cpp0x/variadic-ttp.C
gcc/testsuite/g++.dg/cpp0x/variadic-tuple.C
gcc/testsuite/g++.dg/cpp0x/variadic-unify-2.C
gcc/testsuite/g++.dg/cpp0x/variadic-unify.C
gcc/testsuite/g++.dg/cpp0x/variadic-unresolved.C
gcc/testsuite/g++.dg/cpp0x/variadic1.C
gcc/testsuite/g++.dg/cpp0x/variadic10.C
gcc/testsuite/g++.dg/cpp0x/variadic100.C
gcc/testsuite/g++.dg/cpp0x/variadic101.C
gcc/testsuite/g++.dg/cpp0x/variadic102.C
gcc/testsuite/g++.dg/cpp0x/variadic103.C
gcc/testsuite/g++.dg/cpp0x/variadic105.C
gcc/testsuite/g++.dg/cpp0x/variadic106.C
gcc/testsuite/g++.dg/cpp0x/variadic107.C
gcc/testsuite/g++.dg/cpp0x/variadic108.C
gcc/testsuite/g++.dg/cpp0x/variadic109.C
gcc/testsuite/g++.dg/cpp0x/variadic11.C
gcc/testsuite/g++.dg/cpp0x/variadic110.C
gcc/testsuite/g++.dg/cpp0x/variadic111.C
gcc/testsuite/g++.dg/cpp0x/variadic112.C
gcc/testsuite/g++.dg/cpp0x/variadic113.C
gcc/testsuite/g++.dg/cpp0x/variadic114.C
gcc/testsuite/g++.dg/cpp0x/variadic115.C
gcc/testsuite/g++.dg/cpp0x/variadic116.C
gcc/testsuite/g++.dg/cpp0x/variadic117.C
gcc/testsuite/g++.dg/cpp0x/variadic118.C
gcc/testsuite/g++.dg/cpp0x/variadic12.C
gcc/testsuite/g++.dg/cpp0x/variadic121.C
gcc/testsuite/g++.dg/cpp0x/variadic122.C
gcc/testsuite/g++.dg/cpp0x/variadic124.C
gcc/testsuite/g++.dg/cpp0x/variadic13.C
gcc/testsuite/g++.dg/cpp0x/variadic135.C
gcc/testsuite/g++.dg/cpp0x/variadic14.C
gcc/testsuite/g++.dg/cpp0x/variadic143.C
gcc/testsuite/g++.dg/cpp0x/variadic149.C
gcc/testsuite/g++.dg/cpp0x/variadic15.C
gcc/testsuite/g++.dg/cpp0x/variadic16.C
gcc/testsuite/g++.dg/cpp0x/variadic17.C
gcc/testsuite/g++.dg/cpp0x/variadic18.C
gcc/testsuite/g++.dg/cpp0x/variadic19.C
gcc/testsuite/g++.dg/cpp0x/variadic2.C
gcc/testsuite/g++.dg/cpp0x/variadic20.C
gcc/testsuite/g++.dg/cpp0x/variadic21.C
gcc/testsuite/g++.dg/cpp0x/variadic22.C
gcc/testsuite/g++.dg/cpp0x/variadic23.C
gcc/testsuite/g++.dg/cpp0x/variadic24.C
gcc/testsuite/g++.dg/cpp0x/variadic25.C
gcc/testsuite/g++.dg/cpp0x/variadic26.C
gcc/testsuite/g++.dg/cpp0x/variadic27.C
gcc/testsuite/g++.dg/cpp0x/variadic28.C
gcc/testsuite/g++.dg/cpp0x/variadic29.C
gcc/testsuite/g++.dg/cpp0x/variadic3.C
gcc/testsuite/g++.dg/cpp0x/variadic30.C
gcc/testsuite/g++.dg/cpp0x/variadic31.C
gcc/testsuite/g++.dg/cpp0x/variadic32.C
gcc/testsuite/g++.dg/cpp0x/variadic33.C
gcc/testsuite/g++.dg/cpp0x/variadic34.C
gcc/testsuite/g++.dg/cpp0x/variadic35.C
gcc/testsuite/g++.dg/cpp0x/variadic36.C
gcc/testsuite/g++.dg/cpp0x/variadic37.C
gcc/testsuite/g++.dg/cpp0x/variadic38.C
gcc/testsuite/g++.dg/cpp0x/variadic39.C
gcc/testsuite/g++.dg/cpp0x/variadic4.C
gcc/testsuite/g++.dg/cpp0x/variadic40.C
gcc/testsuite/g++.dg/cpp0x/variadic41.C
gcc/testsuite/g++.dg/cpp0x/variadic42.C
gcc/testsuite/g++.dg/cpp0x/variadic43.C
gcc/testsuite/g++.dg/cpp0x/variadic44.C
gcc/testsuite/g++.dg/cpp0x/variadic45.C
gcc/testsuite/g++.dg/cpp0x/variadic46.C
gcc/testsuite/g++.dg/cpp0x/variadic47.C
gcc/testsuite/g++.dg/cpp0x/variadic48.C
gcc/testsuite/g++.dg/cpp0x/variadic49.C
gcc/testsuite/g++.dg/cpp0x/variadic5.C
gcc/testsuite/g++.dg/cpp0x/variadic50.C
gcc/testsuite/g++.dg/cpp0x/variadic51.C
gcc/testsuite/g++.dg/cpp0x/variadic52.C
gcc/testsuite/g++.dg/cpp0x/variadic53.C
gcc/testsuite/g++.dg/cpp0x/variadic54.C
gcc/testsuite/g++.dg/cpp0x/variadic55.C
gcc/testsuite/g++.dg/cpp0x/variadic56.C
gcc/testsuite/g++.dg/cpp0x/variadic57.C
gcc/testsuite/g++.dg/cpp0x/variadic58.C
gcc/testsuite/g++.dg/cpp0x/variadic59.C
gcc/testsuite/g++.dg/cpp0x/variadic6.C
gcc/testsuite/g++.dg/cpp0x/variadic60.C
gcc/testsuite/g++.dg/cpp0x/variadic63.C
gcc/testsuite/g++.dg/cpp0x/variadic64.C
gcc/testsuite/g++.dg/cpp0x/variadic65.C
gcc/testsuite/g++.dg/cpp0x/variadic66.C
gcc/testsuite/g++.dg/cpp0x/variadic67.C
gcc/testsuite/g++.dg/cpp0x/variadic68.C
gcc/testsuite/g++.dg/cpp0x/variadic69.C
gcc/testsuite/g++.dg/cpp0x/variadic7.C
gcc/testsuite/g++.dg/cpp0x/variadic70.C
gcc/testsuite/g++.dg/cpp0x/variadic71.C
gcc/testsuite/g++.dg/cpp0x/variadic72.C
gcc/testsuite/g++.dg/cpp0x/variadic73.C
gcc/testsuite/g++.dg/cpp0x/variadic75.C
gcc/testsuite/g++.dg/cpp0x/variadic76.C
gcc/testsuite/g++.dg/cpp0x/variadic77.C
gcc/testsuite/g++.dg/cpp0x/variadic78.C
gcc/testsuite/g++.dg/cpp0x/variadic79.C
gcc/testsuite/g++.dg/cpp0x/variadic8.C
gcc/testsuite/g++.dg/cpp0x/variadic80.C
gcc/testsuite/g++.dg/cpp0x/variadic81.C
gcc/testsuite/g++.dg/cpp0x/variadic82.C
gcc/testsuite/g++.dg/cpp0x/variadic83.C
gcc/testsuite/g++.dg/cpp0x/variadic84.C
gcc/testsuite/g++.dg/cpp0x/variadic85.C
gcc/testsuite/g++.dg/cpp0x/variadic86.C
gcc/testsuite/g++.dg/cpp0x/variadic87.C
gcc/testsuite/g++.dg/cpp0x/variadic88.C
gcc/testsuite/g++.dg/cpp0x/variadic89.C
gcc/testsuite/g++.dg/cpp0x/variadic9.C
gcc/testsuite/g++.dg/cpp0x/variadic90.C
gcc/testsuite/g++.dg/cpp0x/variadic91.C
gcc/testsuite/g++.dg/cpp0x/variadic92.C
gcc/testsuite/g++.dg/cpp0x/variadic93.C
gcc/testsuite/g++.dg/cpp0x/variadic94.C
gcc/testsuite/g++.dg/cpp0x/variadic95.C
gcc/testsuite/g++.dg/cpp0x/variadic96.C
gcc/testsuite/g++.dg/cpp0x/variadic97.C
gcc/testsuite/g++.dg/cpp0x/variadic98.C
gcc/testsuite/g++.dg/cpp0x/variadic99.C
gcc/testsuite/g++.dg/cpp0x/vt-33964.C
gcc/testsuite/g++.dg/cpp0x/vt-34050.C
gcc/testsuite/g++.dg/cpp0x/vt-34051-2.C
gcc/testsuite/g++.dg/cpp0x/vt-34051.C
gcc/testsuite/g++.dg/cpp0x/vt-34052.C
gcc/testsuite/g++.dg/cpp0x/vt-34055.C
gcc/testsuite/g++.dg/cpp0x/vt-34102.C
gcc/testsuite/g++.dg/cpp0x/vt-34103.C
gcc/testsuite/g++.dg/cpp0x/vt-34219-2.C
gcc/testsuite/g++.dg/cpp0x/vt-34219.C
gcc/testsuite/g++.dg/cpp0x/vt-34314.C
gcc/testsuite/g++.dg/cpp0x/vt-34399.C
gcc/testsuite/g++.dg/cpp0x/vt-34606.C
gcc/testsuite/g++.dg/cpp0x/vt-34751.C
gcc/testsuite/g++.dg/cpp0x/vt-34753.C
gcc/testsuite/g++.dg/cpp0x/vt-34754.C
gcc/testsuite/g++.dg/cpp0x/vt-34755.C
gcc/testsuite/g++.dg/cpp0x/vt-34919.C
gcc/testsuite/g++.dg/cpp0x/vt-34961.C
gcc/testsuite/g++.dg/cpp0x/vt-35023.C
gcc/testsuite/g++.dg/cpp0x/vt-35024.C
gcc/testsuite/g++.dg/cpp0x/vt-35026.C
gcc/testsuite/g++.dg/cpp0x/vt-35147.C
gcc/testsuite/g++.dg/cpp0x/vt-35242.C
gcc/testsuite/g++.dg/cpp0x/vt-35243.C
gcc/testsuite/g++.dg/cpp0x/vt-35331.C
gcc/testsuite/g++.dg/cpp0x/vt-37737-1.C
gcc/testsuite/g++.dg/cpp0x/vt-37737-2.C
gcc/testsuite/g++.dg/cpp0x/vt-40092.C
gcc/testsuite/g++.dg/cpp0x/vt-51314.C
gcc/testsuite/g++.dg/cpp0x/vt-55323.C
gcc/testsuite/g++.dg/cpp0x/vt-55542.C
gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C
gcc/testsuite/g++.dg/cpp0x/warn_cxx0x2.C
gcc/testsuite/g++.dg/cpp0x/warn_cxx0x3.C
gcc/testsuite/g++.dg/cpp1y/attr-deprecated-neg.C
gcc/testsuite/g++.dg/cpp1y/attr-deprecated.C
gcc/testsuite/g++.dg/cpp1y/auto-dtor1.C
gcc/testsuite/g++.dg/cpp1y/auto-fn1.C
gcc/testsuite/g++.dg/cpp1y/auto-fn10.C
gcc/testsuite/g++.dg/cpp1y/auto-fn11.C
gcc/testsuite/g++.dg/cpp1y/auto-fn12.C
gcc/testsuite/g++.dg/cpp1y/auto-fn13.C
gcc/testsuite/g++.dg/cpp1y/auto-fn14.C
gcc/testsuite/g++.dg/cpp1y/auto-fn15.C
gcc/testsuite/g++.dg/cpp1y/auto-fn16.C
gcc/testsuite/g++.dg/cpp1y/auto-fn17.C
gcc/testsuite/g++.dg/cpp1y/auto-fn18.C
gcc/testsuite/g++.dg/cpp1y/auto-fn19.C
gcc/testsuite/g++.dg/cpp1y/auto-fn2.C
gcc/testsuite/g++.dg/cpp1y/auto-fn20.C
gcc/testsuite/g++.dg/cpp1y/auto-fn21.C
gcc/testsuite/g++.dg/cpp1y/auto-fn22.C
gcc/testsuite/g++.dg/cpp1y/auto-fn23.C
gcc/testsuite/g++.dg/cpp1y/auto-fn24.C
gcc/testsuite/g++.dg/cpp1y/auto-fn3.C
gcc/testsuite/g++.dg/cpp1y/auto-fn4.C
gcc/testsuite/g++.dg/cpp1y/auto-fn5.C
gcc/testsuite/g++.dg/cpp1y/auto-fn6.C
gcc/testsuite/g++.dg/cpp1y/auto-fn7.C
gcc/testsuite/g++.dg/cpp1y/auto-fn8.C
gcc/testsuite/g++.dg/cpp1y/auto-fn9.C
gcc/testsuite/g++.dg/cpp1y/auto-mangle1.C
gcc/testsuite/g++.dg/cpp1y/auto-neg1.C
gcc/testsuite/g++.dg/cpp1y/cplusplus.C
gcc/testsuite/g++.dg/cpp1y/digit-sep-cxx11-neg.C
gcc/testsuite/g++.dg/cpp1y/digit-sep-neg.C
gcc/testsuite/g++.dg/cpp1y/digit-sep.C
gcc/testsuite/g++.dg/cpp1y/fn-generic-member-ool.C
gcc/testsuite/g++.dg/cpp1y/lambda-deduce-mult.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-cfun.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-dep.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-mixed.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-udt.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-vla1.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-xcfun.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-xudt.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic.C
gcc/testsuite/g++.dg/cpp1y/lambda-init.C
gcc/testsuite/g++.dg/cpp1y/lambda-init1.C
gcc/testsuite/g++.dg/cpp1y/lambda-init2.C
gcc/testsuite/g++.dg/cpp1y/lambda-init3.C
gcc/testsuite/g++.dg/cpp1y/lambda-init4.C
gcc/testsuite/g++.dg/cpp1y/lambda-init5.C
gcc/testsuite/g++.dg/cpp1y/lambda-init6.C
gcc/testsuite/g++.dg/cpp1y/lambda-init7.C
gcc/testsuite/g++.dg/cpp1y/mangle1.C
gcc/testsuite/g++.dg/cpp1y/pr57640.C
gcc/testsuite/g++.dg/cpp1y/pr58500.C
gcc/testsuite/g++.dg/cpp1y/pr58533.C
gcc/testsuite/g++.dg/cpp1y/pr58534.C
gcc/testsuite/g++.dg/cpp1y/pr58535.C
gcc/testsuite/g++.dg/cpp1y/pr58536.C
gcc/testsuite/g++.dg/cpp1y/pr58548.C
gcc/testsuite/g++.dg/cpp1y/pr58549.C
gcc/testsuite/g++.dg/cpp1y/pr58637.C
gcc/testsuite/g++.dg/cpp1y/pr58708.C
gcc/testsuite/g++.dg/cpp1y/pr59110.C
gcc/testsuite/g++.dg/cpp1y/pr59112.C
gcc/testsuite/g++.dg/cpp1y/pr59113.C
gcc/testsuite/g++.dg/cpp1y/pr59629.C
gcc/testsuite/g++.dg/cpp1y/pr59635.C
gcc/testsuite/g++.dg/cpp1y/pr59636.C
gcc/testsuite/g++.dg/cpp1y/pr59638.C
gcc/testsuite/g++.dg/cpp1y/pr60052.C
gcc/testsuite/g++.dg/cpp1y/pr60053.C
gcc/testsuite/g++.dg/cpp1y/pr60064.C
gcc/testsuite/g++.dg/cpp1y/pr60065.C
gcc/testsuite/g++.dg/cpp1y/pr60190.C
gcc/testsuite/g++.dg/cpp1y/pr60311.C
gcc/testsuite/g++.dg/cpp1y/pr60376.C
gcc/testsuite/g++.dg/cpp1y/pr60377.C
gcc/testsuite/g++.dg/cpp1y/regress1.C
gcc/testsuite/g++.dg/cpp1y/system-binary-constants-1.C
gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C
gcc/testsuite/g++.dg/cpp1y/udlit-char-template.C
gcc/testsuite/g++.dg/cpp1y/udlit-empty-string-neg.C
gcc/testsuite/g++.dg/cpp1y/udlit-enc-prefix-neg.C
gcc/testsuite/g++.dg/cpp1y/udlit-userdef-string.C
gcc/testsuite/g++.dg/cpp1y/vla-initlist1.C
gcc/testsuite/g++.dg/cpp1y/vla1.C
gcc/testsuite/g++.dg/cpp1y/vla10.C
gcc/testsuite/g++.dg/cpp1y/vla11.C
gcc/testsuite/g++.dg/cpp1y/vla12.C
gcc/testsuite/g++.dg/cpp1y/vla13.C
gcc/testsuite/g++.dg/cpp1y/vla2.C
gcc/testsuite/g++.dg/cpp1y/vla3.C
gcc/testsuite/g++.dg/cpp1y/vla4.C
gcc/testsuite/g++.dg/cpp1y/vla5.C
gcc/testsuite/g++.dg/cpp1y/vla6.C
gcc/testsuite/g++.dg/cpp1y/vla8.C
gcc/testsuite/g++.dg/cpp1y/vla9.C
gcc/testsuite/g++.dg/debug/dwarf2/anonname1.C
gcc/testsuite/g++.dg/debug/dwarf2/auto1.C
gcc/testsuite/g++.dg/debug/dwarf2/enum1.C
gcc/testsuite/g++.dg/debug/dwarf2/lambda1.C
gcc/testsuite/g++.dg/debug/dwarf2/pr52260.C
gcc/testsuite/g++.dg/debug/dwarf2/pubnames-2.C
gcc/testsuite/g++.dg/debug/dwarf2/pubnames-3.C
gcc/testsuite/g++.dg/debug/dwarf2/rv1.C
gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-4.C
gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-7.C
gcc/testsuite/g++.dg/debug/dwarf2/template-params-4.C
gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C
gcc/testsuite/g++.dg/debug/localclass1.C
gcc/testsuite/g++.dg/debug/nullptr01.C
gcc/testsuite/g++.dg/eh/dtor3.C
gcc/testsuite/g++.dg/ext/alias-decl-attr1.C
gcc/testsuite/g++.dg/ext/alias-decl-attr2.C
gcc/testsuite/g++.dg/ext/alias-decl-attr3.C
gcc/testsuite/g++.dg/ext/alias-decl-attr4.C
gcc/testsuite/g++.dg/ext/anon-struct4.C
gcc/testsuite/g++.dg/ext/bases.C
gcc/testsuite/g++.dg/ext/complex8.C
gcc/testsuite/g++.dg/ext/desig6.C
gcc/testsuite/g++.dg/ext/has_nothrow_constructor-2.C
gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C
gcc/testsuite/g++.dg/ext/has_nothrow_copy-8.C
gcc/testsuite/g++.dg/ext/int128-4.C
gcc/testsuite/g++.dg/ext/is_final.C
gcc/testsuite/g++.dg/ext/is_literal_type1.C
gcc/testsuite/g++.dg/ext/is_pod.C
gcc/testsuite/g++.dg/ext/pr57509.C
gcc/testsuite/g++.dg/ext/underlying_type10.C
gcc/testsuite/g++.dg/ext/underlying_type3.C
gcc/testsuite/g++.dg/ext/underlying_type5.C
gcc/testsuite/g++.dg/ext/underlying_type6.C
gcc/testsuite/g++.dg/ext/underlying_type7.C
gcc/testsuite/g++.dg/ext/underlying_type8.C
gcc/testsuite/g++.dg/ext/underlying_type9.C
gcc/testsuite/g++.dg/ext/utf-array-short-wchar.C
gcc/testsuite/g++.dg/ext/utf-array.C
gcc/testsuite/g++.dg/ext/utf-badconcat.C
gcc/testsuite/g++.dg/ext/utf-badconcat2.C
gcc/testsuite/g++.dg/ext/utf-cvt.C
gcc/testsuite/g++.dg/ext/utf-cxx0x.C
gcc/testsuite/g++.dg/ext/utf-gnuxx0x.C
gcc/testsuite/g++.dg/ext/utf-mangle.C
gcc/testsuite/g++.dg/ext/utf-rtti.C
gcc/testsuite/g++.dg/ext/utf-type.C
gcc/testsuite/g++.dg/ext/utf-typedef-cxx0x.C
gcc/testsuite/g++.dg/ext/utf-typespec.C
gcc/testsuite/g++.dg/ext/utf16-1.C
gcc/testsuite/g++.dg/ext/utf16-2.C
gcc/testsuite/g++.dg/ext/utf16-3.C
gcc/testsuite/g++.dg/ext/utf16-4.C
gcc/testsuite/g++.dg/ext/utf32-1.C
gcc/testsuite/g++.dg/ext/utf32-2.C
gcc/testsuite/g++.dg/ext/utf32-3.C
gcc/testsuite/g++.dg/ext/utf32-4.C
gcc/testsuite/g++.dg/ext/utf8-1.C
gcc/testsuite/g++.dg/ext/utf8-2.C
gcc/testsuite/g++.dg/ext/vector18.C
gcc/testsuite/g++.dg/ext/vector19.C
gcc/testsuite/g++.dg/ext/vector20.C
gcc/testsuite/g++.dg/ext/vector23.C
gcc/testsuite/g++.dg/ext/vector26.C
gcc/testsuite/g++.dg/ext/visibility/anon8.C
gcc/testsuite/g++.dg/ext/vla11.C
gcc/testsuite/g++.dg/gomp/pr38639.C
gcc/testsuite/g++.dg/gomp/tls-wrap4.C
gcc/testsuite/g++.dg/init/array37.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/regress5.C with 77% similarity]
gcc/testsuite/g++.dg/init/brace2.C
gcc/testsuite/g++.dg/init/brace6.C
gcc/testsuite/g++.dg/init/ctor11.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/ctor1.C with 84% similarity]
gcc/testsuite/g++.dg/init/no-elide1.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/no-elide1.C with 63% similarity]
gcc/testsuite/g++.dg/init/null1.C
gcc/testsuite/g++.dg/init/pr25811.C
gcc/testsuite/g++.dg/init/pr29043.C
gcc/testsuite/g++.dg/init/pr43719.C
gcc/testsuite/g++.dg/init/pr44086.C
gcc/testsuite/g++.dg/ipa/devirt-12.C
gcc/testsuite/g++.dg/ipa/devirt-29.C
gcc/testsuite/g++.dg/ipa/pr56310.C
gcc/testsuite/g++.dg/opt/builtins2.C
gcc/testsuite/g++.dg/opt/dump1.C
gcc/testsuite/g++.dg/opt/pr56381.C
gcc/testsuite/g++.dg/opt/pr57661.C
gcc/testsuite/g++.dg/opt/pr59947.C
gcc/testsuite/g++.dg/opt/value-init1.C
gcc/testsuite/g++.dg/other/anon-union3.C
gcc/testsuite/g++.dg/other/anon3.C
gcc/testsuite/g++.dg/other/crash-6.C
gcc/testsuite/g++.dg/other/crash-7.C
gcc/testsuite/g++.dg/other/crash-8.C
gcc/testsuite/g++.dg/other/final1.C
gcc/testsuite/g++.dg/other/final2.C
gcc/testsuite/g++.dg/other/gc5.C
gcc/testsuite/g++.dg/other/isnan.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/isnan.C with 75% similarity]
gcc/testsuite/g++.dg/other/var_copy-1.C
gcc/testsuite/g++.dg/other/vector-compare.C
gcc/testsuite/g++.dg/parse/ambig9.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/regress6.C with 76% similarity]
gcc/testsuite/g++.dg/parse/bitfield5.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/bitfield-err1.C with 75% similarity]
gcc/testsuite/g++.dg/parse/crash56.C
gcc/testsuite/g++.dg/parse/error11.C
gcc/testsuite/g++.dg/parse/error12.C
gcc/testsuite/g++.dg/parse/template21.C
gcc/testsuite/g++.dg/parse/tmpl-outside1.C
gcc/testsuite/g++.dg/parse/tmpl-outside2.C
gcc/testsuite/g++.dg/plugin/plugin.exp
gcc/testsuite/g++.dg/pr57175.C
gcc/testsuite/g++.dg/pr57878.C
gcc/testsuite/g++.dg/simulate-thread/atomics-1.C
gcc/testsuite/g++.dg/simulate-thread/atomics-2.C
gcc/testsuite/g++.dg/template/access28.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/regress4.C with 96% similarity]
gcc/testsuite/g++.dg/template/aggr-init1.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/regress1.C with 57% similarity]
gcc/testsuite/g++.dg/template/arg2.C
gcc/testsuite/g++.dg/template/array27.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/array1.C with 86% similarity]
gcc/testsuite/g++.dg/template/canon-type-12.C
gcc/testsuite/g++.dg/template/canon-type-9.C
gcc/testsuite/g++.dg/template/condition1.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/condition1.C with 98% similarity]
gcc/testsuite/g++.dg/template/const5.C
gcc/testsuite/g++.dg/template/const7.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/template-const1.C with 81% similarity]
gcc/testsuite/g++.dg/template/const8.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/template-const2.C with 84% similarity]
gcc/testsuite/g++.dg/template/defarg12.C
gcc/testsuite/g++.dg/template/dependent-expr8.C
gcc/testsuite/g++.dg/template/enum8.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/enum1.C with 73% similarity]
gcc/testsuite/g++.dg/template/error-recovery3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/explicit-args2.C
gcc/testsuite/g++.dg/template/inherit6.C
gcc/testsuite/g++.dg/template/inherit7.C
gcc/testsuite/g++.dg/template/koenig10.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/regress3.C with 86% similarity]
gcc/testsuite/g++.dg/template/new12.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/call1.C with 91% similarity]
gcc/testsuite/g++.dg/template/non-const1.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/non-const1.C with 80% similarity]
gcc/testsuite/g++.dg/template/nontype25.C
gcc/testsuite/g++.dg/template/ptrmem25.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/ptrmem1.C with 80% similarity]
gcc/testsuite/g++.dg/template/ptrmem26.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/regress2.C with 76% similarity]
gcc/testsuite/g++.dg/template/qualttp18.C
gcc/testsuite/g++.dg/template/sfinae15.C
gcc/testsuite/g++.dg/template/sfinae16.C
gcc/testsuite/g++.dg/template/sfinae20.C
gcc/testsuite/g++.dg/template/sfinae22.C
gcc/testsuite/g++.dg/template/sfinae23.C
gcc/testsuite/g++.dg/template/typedef25.C
gcc/testsuite/g++.dg/template/typedef38.C
gcc/testsuite/g++.dg/template/unify11.C
gcc/testsuite/g++.dg/template/value-dep1.C [moved from gcc/testsuite/g++.dg/cpp0x/regress/value-dep1.C with 73% similarity]
gcc/testsuite/g++.dg/tls/thread_local-cse.C
gcc/testsuite/g++.dg/tls/thread_local-ice.C
gcc/testsuite/g++.dg/tls/thread_local-ice2.C
gcc/testsuite/g++.dg/tls/thread_local-order1.C
gcc/testsuite/g++.dg/tls/thread_local-order2.C
gcc/testsuite/g++.dg/tls/thread_local-wrap1.C
gcc/testsuite/g++.dg/tls/thread_local-wrap2.C
gcc/testsuite/g++.dg/tls/thread_local-wrap3.C
gcc/testsuite/g++.dg/tls/thread_local-wrap4.C
gcc/testsuite/g++.dg/tls/thread_local1.C
gcc/testsuite/g++.dg/tls/thread_local2.C
gcc/testsuite/g++.dg/tls/thread_local2g.C
gcc/testsuite/g++.dg/tls/thread_local6.C
gcc/testsuite/g++.dg/tls/thread_local6g.C
gcc/testsuite/g++.dg/tls/thread_local7.C
gcc/testsuite/g++.dg/tls/thread_local7g.C
gcc/testsuite/g++.dg/tls/thread_local8.C
gcc/testsuite/g++.dg/tm/noexcept-1.C
gcc/testsuite/g++.dg/tm/noexcept-2.C
gcc/testsuite/g++.dg/tm/noexcept-3.C
gcc/testsuite/g++.dg/tm/noexcept-4.C
gcc/testsuite/g++.dg/tm/noexcept-5.C
gcc/testsuite/g++.dg/tm/noexcept-6.C
gcc/testsuite/g++.dg/tm/pr58516.C
gcc/testsuite/g++.dg/tm/pr58635-1.C
gcc/testsuite/g++.dg/tm/pr58635-2.C
gcc/testsuite/g++.dg/tm/template-2.C
gcc/testsuite/g++.dg/torture/pr40991.C
gcc/testsuite/g++.dg/torture/pr47559.C
gcc/testsuite/g++.dg/torture/pr49770.C
gcc/testsuite/g++.dg/torture/pr51198.C
gcc/testsuite/g++.dg/torture/pr53161.C
gcc/testsuite/g++.dg/torture/pr53602.C
gcc/testsuite/g++.dg/torture/pr55260-1.C
gcc/testsuite/g++.dg/torture/pr56768.C
gcc/testsuite/g++.dg/torture/pr59265.C
gcc/testsuite/g++.dg/torture/vshuf-main.inc
gcc/testsuite/g++.dg/torture/vshuf-v16hi.C
gcc/testsuite/g++.dg/torture/vshuf-v16qi.C
gcc/testsuite/g++.dg/torture/vshuf-v2df.C
gcc/testsuite/g++.dg/torture/vshuf-v2di.C
gcc/testsuite/g++.dg/torture/vshuf-v2sf.C
gcc/testsuite/g++.dg/torture/vshuf-v2si.C
gcc/testsuite/g++.dg/torture/vshuf-v4df.C
gcc/testsuite/g++.dg/torture/vshuf-v4di.C
gcc/testsuite/g++.dg/torture/vshuf-v4sf.C
gcc/testsuite/g++.dg/torture/vshuf-v4si.C
gcc/testsuite/g++.dg/torture/vshuf-v8hi.C
gcc/testsuite/g++.dg/torture/vshuf-v8qi.C
gcc/testsuite/g++.dg/torture/vshuf-v8si.C
gcc/testsuite/g++.dg/tree-prof/pr59255.C
gcc/testsuite/g++.dg/tree-ssa/pr18178.C
gcc/testsuite/g++.dg/ubsan/cxx11-shift-1.C
gcc/testsuite/g++.dg/ubsan/cxx11-shift-2.C
gcc/testsuite/g++.dg/ubsan/cxx1y-vla.C
gcc/testsuite/g++.dg/warn/Wconversion-null-3.C
gcc/testsuite/g++.dg/warn/Wdiv-by-zero-2.C
gcc/testsuite/g++.dg/warn/Wsequence-point-2.C
gcc/testsuite/g++.dg/warn/Wshadow-6.C
gcc/testsuite/g++.dg/warn/Wunused-var-19.C
gcc/testsuite/g++.dg/warn/Wvla-2.C
gcc/testsuite/g++.dg/warn/delete-non-virtual-dtor.C
gcc/testsuite/g++.dg/warn/format8.C
gcc/testsuite/g++.dg/warn/pr13358-3.C
gcc/testsuite/g++.dg/warn/pr13358-4.C
gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C
gcc/testsuite/g++.old-deja/g++.brendan/crash64.C
gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C
gcc/testsuite/g++.old-deja/g++.brendan/enum11.C
gcc/testsuite/g++.old-deja/g++.brendan/enum8.C
gcc/testsuite/g++.old-deja/g++.brendan/enum9.C
gcc/testsuite/g++.old-deja/g++.brendan/friend3.C
gcc/testsuite/g++.old-deja/g++.brendan/init2.C
gcc/testsuite/g++.old-deja/g++.brendan/init4.C
gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
gcc/testsuite/g++.old-deja/g++.jason/cond.C
gcc/testsuite/g++.old-deja/g++.law/init1.C
gcc/testsuite/g++.old-deja/g++.law/operators32.C
gcc/testsuite/g++.old-deja/g++.other/anon9.C
gcc/testsuite/g++.old-deja/g++.other/linkage1.C
gcc/testsuite/g++.old-deja/g++.other/linkage2.C
gcc/testsuite/g++.old-deja/g++.other/linkage4.C
gcc/testsuite/g++.old-deja/g++.other/using3.C
gcc/testsuite/g++.old-deja/g++.pt/enum6.C
gcc/testsuite/g++.old-deja/g++.pt/explicit70.C
gcc/testsuite/g++.old-deja/g++.pt/memtemp87.C
gcc/testsuite/g++.old-deja/g++.pt/overload13.C
gcc/testsuite/g++.old-deja/g++.pt/ptrmem6.C
gcc/testsuite/g++.old-deja/g++.pt/t29.C
gcc/testsuite/g++.old-deja/g++.pt/t30.C
gcc/testsuite/lib/g++-dg.exp
gcc/testsuite/lib/target-supports.exp

index f516a75..fb7bf70 100644 (file)
@@ -1,3 +1,16 @@
+2014-03-07  Jason Merrill  <jason@redhat.com>
+
+       * lib/g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
+       * lib/target-supports.exp (check_effective_target_c++11): Now
+       means C++11 and up.
+       (check_effective_target_c++11_only): New.
+       (check_effective_target_c++11_down): New.
+       (check_effective_target_c++1y): New.
+       (check_effective_target_c++1y_only): New.
+       (check_effective_target_c++98_only): Rename from
+       check_effective_target_c++98.
+       * g++.dg/*: Use { target c++11 } instead of -std=c++11.
+
 2014-03-07  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/58609
index d90eb33..cee9237 100644 (file)
@@ -6,9 +6,9 @@ namespace N1 {
     typedef enum { X, Y } A;
     typedef struct { } B;
     struct C {
-      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn1ENS0_1BE" { target { ! c++98 } } } }
+      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn1ENS0_1BE" { target c++11 } } }
       static void fn1 (B) { }
-      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn2ES1_" { target { ! c++98 } } } }
+      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn2ES1_" { target c++11 } } }
       static void fn2 (C) { }
     };
   } D;
@@ -22,10 +22,10 @@ namespace N2 {
     typedef enum { X, Y } A;
     typedef struct { } B;
     struct C {
-      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn1ENS0_1BE" { target { ! c++98 } } } }
-      static void fn1 (B) { } // { dg-error "no linkage" "" { target c++98 } }
-      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn2ES1_" { target { ! c++98 } } } }
-      static void fn2 (C) { } // { dg-error "no linkage" "" { target c++98 } }
+      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn1ENS0_1BE" { target c++11 } } }
+      static void fn1 (B) { } // { dg-error "no linkage" "" { target { ! c++11 } } }
+      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn2ES1_" { target c++11 } } }
+      static void fn2 (C) { } // { dg-error "no linkage" "" { target { ! c++11 } } }
     };
   } const D;
 
@@ -38,9 +38,9 @@ namespace N3 {
     typedef enum { X, Y } A;
     typedef struct { } B;
     template <class T> struct C {
-      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn1ENS0_1BE" { target { ! c++98 } } } }
+      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn1ENS0_1BE" { target c++11 } } }
       static void fn1 (B) { }
-      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn2ES2_" { target { ! c++98 } } } }
+      // { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn2ES2_" { target c++11 } } }
       static void fn2 (C) { }
     };
   } D;
@@ -54,10 +54,10 @@ namespace N4 {
     typedef enum { X, Y } A;
     typedef struct { } B;
     template <class T> struct C {
-      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn1ENS0_1BE" { target { ! c++98 } } } }
-      static void fn1 (B) { } // { not-dg-error "no linkage" "" { target c++98 } }
-      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn2ES2_" { target { ! c++98 } } } }
-      static void fn2 (C) { } // { not-dg-error "no linkage" "" { target c++98 } }
+      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn1ENS0_1BE" { target c++11 } } }
+      static void fn1 (B) { } // { not-dg-error "no linkage" "" { target { ! c++11 } } }
+      // { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn2ES2_" { target c++11 } } }
+      static void fn2 (C) { } // { not-dg-error "no linkage" "" { target { ! c++11 } } }
     };
   } const D;
 
index 244d074..6ae0113 100644 (file)
@@ -3,7 +3,7 @@
 // namespace-scope unnamed types have no linkage, so we only test that they
 // are distinct.
 
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 typedef struct { } *A;
 typedef struct { } *B;
@@ -14,7 +14,7 @@ void f(B) { }
 struct C
 {
   typedef struct { }* D;
-  typedef enum { }* E;
+  typedef enum { }* E;
 };
 
 // { dg-final { scan-assembler "_Z2g1PN1CUt_E" } }
@@ -30,7 +30,7 @@ void h2(T t) { }
 
 inline void j()
 {
-  typedef enum { }* F;
+  typedef enum { }* F;
 // { dg-final { scan-assembler "_Z2h1IPZ1jvEUt_EvT_" } }
   h1(F());
   typedef struct { }* G;
index 7270861..691566b 100644 (file)
@@ -1,5 +1,5 @@
 // Testcase for mangling of expressions involving operator names.
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_Z1fI1AEDTclonplfp_fp_EET_" } }
 // { dg-final { scan-assembler "_Z1gI1AEDTclonplIT_Efp_fp_EES1_" } }
 // { dg-final { scan-assembler "_Z1hI1AEDTcldtfp_miEET_" } }
index 2896356..a36f981 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/42338
-// { dg-options "-std=c++0x -fabi-version=5" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=5" }
 // { dg-final { scan-assembler "_Z1fIPiEDTcmppfp_Li0EET_" } }
 // { dg-final { scan-assembler "_Z1gIiEvRK1AIT_EDTixfL0p_Li0EE" } }
 
index b7e3bd5..c7cce5e 100644 (file)
@@ -1,6 +1,7 @@
 // Origin: PR c++/43375
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
-// { dg-options "-msse2 -std=gnu++0x" }
+// { dg-require-effective-target c++11 }
+// { dg-options "-msse2" }
 // { dg-require-effective-target sse2 }
 
 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
index 3ce9abc..5e202a2 100644 (file)
@@ -1,5 +1,6 @@
 // Testcase for mangling of parameters used other than in a trailing return type
-// { dg-options "-std=c++0x -fabi-version=5" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=5" }
 
 template<class T> void f(T p, decltype(p)) { }                // L = 1
 template<class T> void g(T p, decltype(p) (*)()) { }          // L = 1
index 2c1b636..3bb5e9a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47132
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_Z1fIiEDToRfp_Li1EET_" } }
 
 template <typename T>
index 6c0e99c..f9afa1a 100644 (file)
@@ -1,5 +1,5 @@
 // Testcase for 'this' mangling
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 struct B
 {
index a258dc2..3795c55 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/49932
-// { dg-options "-std=c++0x -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 template < typename T >
 auto
index df7afb9..90566c2 100644 (file)
@@ -1,5 +1,5 @@
 // DR 342, PR c++/48582
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 struct A;
 template < void * = nullptr > void f() { }
index 4992f1a..e7c2c74 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++0x -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 void* operator new (__SIZE_TYPE__, void *p) { return p; }
 int i;
index b279182..13f9e71 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 bool b;
 // { dg-final { scan-assembler "_Z1fIiEDTquL_Z1bEfp_twLi42EET_" } }
index ea98df1..926275c 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++0x -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 int i;
 // { dg-final { scan-assembler "_Z2f1IiEDTppfp_ET_" } }
index 72caadc..72ea834 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct A { int i; };
 // { dg-final { scan-assembler "_Z2f1Ii1AEDTdsfp_fp0_ET0_MS2_T_" } }
index 0fd2701..5c66db5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template <class T> T g(T t1, T t2) { return t2; }
 // { dg-final { scan-assembler "_Z2f1IiEDTcl1gfp_ilEEET_" } }
index 3d9d81e..cd59cb8 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++0x -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 template<typename T> int cmp1(T a, T b);
 int cmp2(char a, char b);
index 54b16f2..abcb3ca 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++0x -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 template<typename T, int (*cmp)(T, T)> struct A { };
 struct B {
index 3c88ec8..ba0befd 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++0x -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 // { dg-final { scan-assembler "_Z1fIiEDTcmdlfp_psfp_EPT_" } }
 template <class T> auto f (T* p) -> decltype(delete p, +p) { return p; }
index 42a54a0..c471046 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/29911 (9381)
-// { dg-options -std=c++0x }
 // { dg-do run { target i?86-*-* x86_64-*-* } }
+// { dg-require-effective-target c++11 }
 
 extern "C" int printf(const char *, ...);
 
index b91de7a..3521f87 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -std=c++11 " } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-fcilkplus" } */
 
 int main (void)
 {
index 7448d1a..9b3d2cc 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-options "-fcilkplus" } */
 /* { dg-do run { target i?86-*-* x86_64-*-* arm*-*-* } } */
-/* { dg-options "-std=c++11 -fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* arm*-*-* } } } */
+// { dg-require-effective-target c++11 }
+/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* arm*-*-* } } } */
 #define FIRST_NUMBER 5
 #define SECOND_NUMBER 3
 #define HAVE_IO 0
index 2667f5a..b6e3fea 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-options "-fcilkplus" } */
 /* { dg-do run { target i?86-*-* x86_64-*-* arm*-*-* } } */
-/* { dg-options "-std=c++11 -fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* arm*-*-* } } } */
+// { dg-require-effective-target c++11 }
+/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* arm*-*-* } } } */
 
 #define FIRST_NUMBER 5
 #define SECOND_NUMBER 3
index 44cf9a0..b9ec7b5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46670
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 extern unsigned char __TBB_ReverseByte(unsigned char src);
 extern unsigned char *reversed;
index a33fdf5..accc762 100644 (file)
@@ -1,6 +1,5 @@
 // PR preprocessor/57757
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #define S(x) x
 extern S("C")void exit (int);
index 89a659e..6f83a86 100644 (file)
@@ -1,6 +1,6 @@
 // PR preprocessor/57757
-// { dg-do compile }
-// { dg-options "-std=c++11 -save-temps" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-save-temps" }
 // { dg-final cleanup-saved-temps }
 
 #define S(x) x
index 354e1d9..b2d4f98 100644 (file)
@@ -1,5 +1,6 @@
 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html
-// { dg-options "-std=c++0x -fextended-identifiers" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fextended-identifiers" }
 
 int main()
 {
index 520d77e..b9b975b 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 // Make sure -Wliteral-suffix is enabled by default and
 // triggers as expected.
index 7f6c6ff..232e484 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/57211
-// { dg-options "-std=c++11 -Wunused-parameter" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wunused-parameter" }
 
 template <class T> T&& move(T&);
 
index 9acfafe..a9dd155 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -Wzero-as-null-pointer-constant" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wzero-as-null-pointer-constant" }
 
 struct A;
 
index eea2c2f..5cb4022 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/56373
-// { dg-options "-std=c++11 -Wzero-as-null-pointer-constant" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wzero-as-null-pointer-constant" }
 
 struct shared_ptr
 {
index a7d5633..7c2a712 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 const char* foo()
 {
index a6c8601..55c951f 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49042
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 class A
index 7f5d361..bcefe3f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<template<class> class TT> struct X { };
 template<class> struct Y { };
index e3704d3..c52ab46 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // These also represent tests for printing alias declarations and
 // their instantiations.
index b4e80f4..7c8bad9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <class T> using Ptr = T*;
 Ptr<unsigned>; // { dg-error "does not declare anything" }
index 80795a8..5457433 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 namespace N
 {
   template <class T> using U = T*;
-};
+}
 
 void f(N::U<int>) { blah; } // { dg-error "void f(N::U<int>)|not declared" }
index 758d180..df23e55 100644 (file)
@@ -1,4 +1,4 @@
 // Origin: PR c++/51027
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 using INT = int // { dg-error "expected|;|at end of input" }
index a7a55dd..368e5af 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51191
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template< class T >
 class ClassTemplate {};
index 9e6b19c..52f2201 100644 (file)
@@ -1,5 +1,5 @@
 // Origin: PR c++/51145
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A {};
 
index 6ef8bf7..2d617ab 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51194
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class U, class V> //#1
 struct foo {};
index ce6ad0a..d934a93 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51143
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 using A0 = struct B0 { void f() {} };
 
index 41b1c95..bf947fb 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51289
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename a, template <typename, typename> class b>
 struct foo {
index ba65561..199b054 100644 (file)
@@ -1,5 +1,5 @@
 // Origin: PR c++/51541
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename Z> using ::T = void(int n); // { dg-error "" }
 template<typename Z> using operator int = void(int n); // { dg-error "" }
index d8a71a4..0204f64 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T> struct S0 {};
 template<class T> using AS0 = S0<T>;
index e72bd35..a388ae4 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54859
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<unsigned N>
   using Num = int;
index 072cfb1..2204c25 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Exercise some member alias templates ...
 
index c7da542..60edaf7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // [temp.alias]/3:
 // The type-id in an alias template declaration shall not refer
index f57a67a..559fc51 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // alias template of a partial specialization
 
index 1144038..e0faf2b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Alias template of non-class types.
 
index a1a6a36..f5911d9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Add arguments to unbound template template parameter.
 
index 80c2fdd..c40fbbb 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A {
     template <class U> using C = U;
index b4a23d0..5794617 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct A {
index 5b5d15a..50df842 100644 (file)
@@ -1,6 +1,7 @@
 // Origin: PR c++/51032
 // { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks* nios2-*-* } { "*" } { "" } }
-// { dg-options "-std=c++11 -gstabs+" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-gstabs+" }
 
 template <class C>
 struct A {
index a0a5561..92422f9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 int main(void)
 {
   static_assert(alignof(int) == __alignof(int), "alignof(int) does not equal __alignof(int)");
index 9683a1e..d571d9d 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 int main(void)
 {
   alignof(int); //ok with a type but not with an expression
index 75eff1f..c349cec 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 int main(void)
 {
   alignof(void (void));   // { dg-warning "function type" }
index a05baa8..ca3c47a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51316
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 int main()
 {
index f5c0ea6..b8d3905 100644 (file)
@@ -1,3 +1,4 @@
+// { dg-do compile { target c++11 } }
 // { dg-options "-std=c++98 -Wc++11-compat" }
 
 // Test warning for use of auto in C++98 mode with C++11
index 82e98ff..296873e 100644 (file)
@@ -1,6 +1,5 @@
 // Positive test for auto
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <typeinfo>
 extern "C" void abort();
index dcdb28c..208f512 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38256
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> struct A
 {
index 726fa05..0ada265 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/40306, c++/40307
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 template< typename T >
 struct test {
index 1dca688..ca5758d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template< typename Fn > struct function;
 
index 3610662..e9754f3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/40619
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename U> struct X {};
 
index f04b89f..7f9529e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42567
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename B>
 struct A {
index a5c521c..e6ddf0c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void f()
 {
index 66c0cfe..d27d437 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct Explicit {
   Explicit() = default;  // Line 2
index cf6bcff..cff36d2 100644 (file)
@@ -1,6 +1,5 @@
 // Positive test for auto
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <typeinfo>
 extern "C" void abort();
index 8561b3d..fe9925d 100644 (file)
@@ -1,6 +1,6 @@
 // Test for proper non-deduced context handling of the initializer
 // for an auto declaration/new.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct with_apply
 {
index 1d022b3..a827b3d 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/47208
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 constexpr auto list = { }; // { dg-error "deducing from brace-enclosed initializer list requires #include <initializer_list>" }
 static const int l = list.size();
index 3011178..4ae1d1c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47999
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int& identity(int& i)
 {
index 799445c..f14c2b8 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/46245
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<auto f()->int> struct A { };
index 3911c58..d370cc6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48599
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 int v[1];
 auto (*p)[1] = &v;             // { dg-error "array of .auto" }
index 0153d9c..9e08a5b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42056
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<int> struct A
 {
index 9d0c894..d355a63 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43321
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 void f(T t)
index 1921763..f8e9097 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/51186
 
-auto main()->int              // { dg-error "std=" "std" { target c++98 } }
-                              // { dg-error "auto" "auto" { target c++98 } 3 }
-                              // { dg-error "no type" "no type" { target c++98 } 3 }
+auto main()->int              // { dg-error "std=" "std" { target { ! c++11 } } }
+                              // { dg-error "auto" "auto" { target { ! c++11 } } 3 }
+                              // { dg-error "no type" "no type" { target { ! c++11 } } 3 }
 { }
index 1d6f0d0..441d884 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/51404
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int i = auto().x;  // { dg-error "invalid use of" }
index 8187457..80fdc12 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/51401
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <int>
 struct A
index 2b51d31..c2e5519 100644 (file)
@@ -19,7 +19,7 @@ A<int> A1;
 // CWG issue 625
 A<auto> A2 = A1;               // { dg-error "" }
 
-auto foo() { }                 // { dg-error "auto" }
+auto foo() { }                 // { dg-error "auto" "" { target { ! c++1y } } }
 
 void bar(auto i)               // { dg-error "incomplete|auto" }
 {
index d26e290..cce67d5 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51473
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index c353040..586bc6e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54903
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<int N, int D>
 struct Modulus
index 71b0ded..36144fd 100644 (file)
@@ -1,6 +1,5 @@
 // Testcase for deduction of std::initializer_list for auto.
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <typeinfo>
 #include <initializer_list>
index 6f102e7..b2a7755 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/58550
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
-auto foo();                    // { dg-error "auto" }
-auto fp = foo;
+auto foo();                    // { dg-error "auto" "" { target { ! c++1y } } }
+auto fp = foo;                 // { dg-error "auto" "" { target c++1y } }
index b5dd0d8..8ed66d1 100644 (file)
@@ -1,5 +1,5 @@
 // Testcase for non-dependent auto in templates
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index d795c23..c213c74 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/37965
 // Negative test for auto
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 auto i = 6;
 auto j;                        // { dg-error "has no initializer" }
index ee64979..205bb96 100644 (file)
@@ -1,7 +1,6 @@
 // PR c++/37962
 // Negative test for auto
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <typeinfo>
 #include <stdarg.h>
@@ -16,13 +15,13 @@ const std::type_info &t2 = typeid (auto *); // { dg-error "auto" }
 
 struct A
 {
-  operator auto ();                            // { dg-error "auto" }
-  operator auto *();                           // { dg-error "auto" }
+  operator auto ();                            // { dg-error "auto" "" { target { ! c++1y } } }
+  operator auto *();                           // { dg-error "auto" "" { target { ! c++1y } } }
 };
 
 struct A2
 {
-  operator auto () -> int;                     // { dg-error "invalid use of" }
+  operator auto () -> int;                     // { dg-error "invalid use of" "" { target { ! c++1y } } }
   operator auto *() -> int;                    // { dg-error "auto" }
 };
 
@@ -42,7 +41,7 @@ bool d = (auto (A::*)()) 0;                   // { dg-error "auto" }
 void
 foo ()
 {
-  (auto) { 0 };                                        // { dg-error "auto" }
+  __extension__ (auto) { 0 };                  // { dg-error "auto" }
   C<int> c;
   dynamic_cast<auto> (c);                      // { dg-error "auto" }
   reinterpret_cast<auto> (c);                  // { dg-error "auto" }
@@ -79,10 +78,10 @@ enum struct D : auto * { FF = 0 };          // { dg-error "must be an integral type|decl
 void
 bar ()
 {
-  try { } catch (auto i) { }                   // { dg-error "parameter declared" }
-  try { } catch (auto) { }                     // { dg-error "parameter declared" }
-  try { } catch (auto *i) { }                  // { dg-error "parameter declared" }
-  try { } catch (auto *) { }                   // { dg-error "parameter declared" }
+  try { } catch (auto i) { }                   // { dg-error "parameter" }
+  try { } catch (auto) { }                     // { dg-error "parameter" }
+  try { } catch (auto *i) { }                  // { dg-error "parameter" }
+  try { } catch (auto *) { }                   // { dg-error "parameter" }
 }
 
 void
@@ -99,8 +98,8 @@ baz (int i, ...)
 template <typename T = auto> struct E {};      // { dg-error "invalid use of" }
 template <class T = auto *> struct F {};       // { dg-error "invalid use of|expected" }
 
-auto fnlate () -> auto;                                // { dg-error "invalid use of" }
-auto fnlate2 () -> auto *;                     // { dg-error "invalid use of|expected" }
+auto fnlate () -> auto;                                // { dg-error "invalid use of" "" { target { ! c++1y } } }
+auto fnlate2 () -> auto *;                     // { dg-error "invalid use of|expected" "" { target { ! c++1y } } }
 
 void
 badthrow () throw (auto)                       // { dg-error "invalid use of" }
@@ -117,8 +116,8 @@ template <auto V = 4> struct G {};          // { dg-error "auto" }
 template <typename T> struct H { H (); ~H (); };
 H<auto> h;                                     // { dg-error "invalid" }
 
-void qq (auto);                        // { dg-warning "auto" }
-void qr (auto*);               // { dg-warning "auto" }
+void qq (auto);                        // { dg-error "auto" }
+void qr (auto*);               // { dg-error "auto" }
 
 // PR c++/46145
 typedef auto autot;            // { dg-error "auto" }
index cd5f0c8..2052d39 100644 (file)
@@ -1,6 +1,5 @@
 // Test for throwing bad_array_new_length on invalid array length
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <new>
 
index ab36510..bcc9b9a 100644 (file)
@@ -1,6 +1,5 @@
 // Test for throwing bad_array_new_length on invalid array length
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <new>
 
index a0ce6b8..9b7ce7d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 struct S{};
 void f(S&&);
 
index abda403..6f5c297 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T>
 struct list {};
index 65cf269..35c8608 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<int i> class X { /* ... */ };
 X< 1>2 > x1;    // // { dg-error "numeric constant" }
index f86aa04..93c7148 100644 (file)
@@ -1,3 +1,4 @@
+// { dg-do compile { target c++11 } }
 // { dg-options "-std=c++98 -Wc++11-compat" }
 
 template<int N> struct X {};
index e6381c7..256f4cb 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename T>
 struct vector { 
 };
index 5485611..2b8ef33 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 struct S
 {
   S();
index 2f10976..d11d724 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test cast from lvalue to rvalue
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 93f2c9f..89fe031 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, typename U> struct same_type;
 template<typename T> struct same_type<T, T> {};
 
index 98435f1..b537bb5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, typename U> struct same_type;
 template<typename T> struct same_type<T, T> {};
 
index c021e98..746a84e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46336
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 extern "C" {
   enum A { };
index c59949a..17a366e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46420
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename> class vector { };
 struct A{};
index 53c20a6..263a44b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47570
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 unsigned int constexpr one()
 { return 1; }
index 1409651..933831b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47969
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 039411e..88d4426 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48089
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 // bang is ill-formed (diagnostic required) because its initializer is
 // non-constant, because it uses the value of an uninitialized object.
index 8f40719..c1d1c37 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49776
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct s
 {
index 6606be8..413566f 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/51369
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 constexpr int x[2][2] = {};
 
index d05ad43..0ce07a5 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/52672
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 __extension__ typedef __SIZE_TYPE__ * ul_ptr;
 constexpr unsigned long a = *((ul_ptr)0x0); // { dg-error "" }
index e49023d..c90fc76 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4;
 constexpr V4 v = { 1, 1, 1, 0 };
index 1c5129d..f34619a 100644 (file)
@@ -1,9 +1,8 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 // Ignore warning on some powerpc-ibm-aix configurations.
 // { dg-prune-output "non-standard ABI extension" }
 // { dg-prune-output "changes the ABI" }
 
 typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4;
-constexpr V4 build (float x, float y, float z) { return (V4){ x, y, z, 0 };}
+constexpr V4 build (float x, float y, float z) { return __extension__ (V4){ x, y, z, 0 };}
 constexpr V4 x = build (1, 0, 0);
index 2c2d2b4..58c00ed 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 // Ignore warning on some powerpc-ibm-aix configurations.
 // { dg-prune-output "non-standard ABI extension" }
 
index 0954fdd..bec69c7 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/55573
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 // Ignore warning on some powerpc-ibm-aix configurations.
 // { dg-prune-output "non-standard ABI extension" }
 
index c0adae4..945bf02 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/56302
-// { dg-do compile }
-// { dg-options "-std=c++11 -O0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-O0" }
 
 constexpr int foo () { return 42; }
 constexpr int x = foo () + 2;
index 13a5ea3..8d791dd 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51462
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index c596a43..418a202 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/47301
-// { dg-options "-std=c++11 -fabi-version=1" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=1" }
 
 struct A
 {
index 3cde1ef..569824d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class base
 {
index 15ad252..ea86d7b 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/56481
 // Non-linearity in potential_constant_expression_1
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S
 {
index db95e56..15d20f6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 constexpr T do_get(T* x, int n) {
index 23c6ebd..9218196 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct IsNegative {
index a282b85..2338f70 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr bool is_negative(int x) {
   return x < 0;
-};
+}
 
 constexpr bool do_has_neg(const int* x, bool(*p)(int)) {
  return p(x[0]) || p(x[1]);  // Line 6
index f530265..3dd3f34 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr const int do_last(const int* x, int n) {
  return x[n - 1];
index 20b6344..eec32d6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 constexpr T do_last(T* x, int n) {
index c307edb..3a48398 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 typedef decltype(sizeof(char)) size_type;
 
index 7c83178..93f9141 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49290
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 typedef unsigned T;
 struct S
index 4b6a3df..02fba95 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <const int I[2]> struct A { int ir[I[0]]; };
 extern constexpr int ar[2] = { 1, 2 };
index f2c8ddc..1614d6b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler-not "static_initialization" } }
 
 struct A
index 4f556ae..ad6b121 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46348
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<__SIZE_TYPE__ _Nw>
   struct _Base
index 38314ec..12f42f1 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48132
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct C
 {
index 0658be9..aa95264 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49924
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { constexpr A() { } };
 
index fef7007..cda0e92 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 //A few constexpr's
 constexpr int foo() { return __alignof__(int); }
index 97fc3ef..c174cb3 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do compile { target init_priority } }
-// { dg-options -std=gnu++11 }
+// { dg-require-effective-target c++11 }
 
 struct t { t(); };
 
index 60bd558..ae270dc 100644 (file)
@@ -1,2 +1,2 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 constexpr auto value = 0;
index b159bb8..5f0b5ca 100644 (file)
@@ -1,5 +1,5 @@
 // Test base/member class and static_assert with constexpr
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
   int i;
index 9849f20..217687a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46293
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index ec6646b..db867d4 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/46526
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 struct Base
 {
index 8a061bf..ab66439 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/46626
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index 5025f47..a50ac36 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46369
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 6ad5aea..5b66720 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/49136
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct day
 {
index 6b20e70..c393db4 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/49136
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct S
 {
index ef2762e..d663f88 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49813
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 inline constexpr bool
 isinf(long double __x)
index 7c128df..8038b88 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51433
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr int f();
 constexpr int g() { return f(); }
index ff86b1b..bfba6fc 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 0d4ea01..fa39348 100644 (file)
@@ -1,5 +1,6 @@
 // Make sure C99 complex works with constexpr
-// { dg-options -std=gnu++11 }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 struct complex
 {
index 006a8c7..bfe4e13 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 constexpr int f()
 {
index dd47a79..388a734 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // Core DR 948
 
 constexpr int something() { return 3; }
index 855c8dc..3ce9b4c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48909
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert((X),#X)
 
index 23076b3..659e733 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index c1279e2..1dbc335 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/52599
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct foo {
-  constexpr foo() try { } catch(...) { };  // { dg-error "constructor" }
+  constexpr foo() try { } catch(...) { };  // { dg-error "constexpr" }
 };
index 4b526ea..e22c55f 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55856
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
@@ -10,7 +10,7 @@ template <class T>
 struct B
 {
   T t;
-  template <class U> constexpr B(U&& u): t(u) { };
+  template <class U> constexpr B(U&& u): t(u) { }
 };
 
 B<A&&> b("");
index a5a4b4d..45e1ed2 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55753
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename Tp>
 struct C {
index ed01a31..299db88 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55753
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 0233373..30b0109 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 2315983..36d1de4 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46348
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 96b99e3..c494712 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46873
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S
 {
index 63d4b15..abfc72c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46877
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct new_allocator
 {
index 4051297..fd87fe4 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/47041
-// { dg-options "-std=c++11 -fno-elide-constructors" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-elide-constructors" }
 
 struct S
 {
index 8a65ad2..5d18e56 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/47199
-// { dg-options "-std=c++11 -fno-elide-constructors" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-elide-constructors" }
 
 template < int > struct S
 {
index 4d204a1..5b75e64 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/46466
-// { dg-options "-std=c++11 -fno-elide-constructors" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-elide-constructors" }
 
 struct S { bool b; };
 constexpr S f() { return S{true}; }
index 9d7e88d..0763ee4 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47774
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index f2a4d44..f49c56a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 // From N2235
 
index 47967ab..312760a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename _Tp, _Tp v>
   struct A3
index f16f12c..2c88fe6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46930
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S {
   static constexpr int size;   // { dg-error "must have an initializer" "must have" }
index 22ccedd..eaa3fbd 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46335
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct T { };
 struct A {
index 4a02336..f1ca05f 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46368
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class A;
 
index 02f6958..a67505d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
   int i;
index 571e58f..f32dde6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51526
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 const int j = 42;
 
index 8115baa..3543942 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51723
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <int... V>
 struct A
index 5eb478d..3cc4f55 100644 (file)
@@ -1,3 +1,3 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr bool never() = delete; // useless, but OK
index 29adab9..ce898ab 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 21213eb..34cdb73 100644 (file)
@@ -1,5 +1,5 @@
 // Test that we explain why a template instantiation isn't constexpr
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct A
index 161b5a7..04db4b3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47207
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr int X (X);           // { dg-error "not usable" }
 // { dg-message "own initializer" "" { target *-*-* } 4 }
index 0a0887f..2a1897b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45923
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int f(int);
 
index 371190e..29f574d 100644 (file)
@@ -1,5 +1,5 @@
 // Origin: PR c++/51633
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index c0cbfdd..c8043e3 100644 (file)
@@ -1,5 +1,5 @@
 // Origin: PR c++/51633
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 45fee3b..93224b0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 template<class T> class my_limits {
 public:
   static constexpr T min() throw() { return T(); }
index 55f8fa5..8c0783c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 constexpr int ellipsis(...) { return 1; }
 
 constexpr int ellipsis_c = ellipsis(); // OK
index d6b4482..b6a5323 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 6a5565f..42f873b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct Empty {};
 
index 5e6694d..51f3f55 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct IsLiteral {};
 
index 133ad42..a9cd98f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct IsLiteral {};
 
index 3b7380d..f61aa69 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 typedef decltype(sizeof(char)) size_type;
 
index f693cc1..e74f5ba 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { };
 struct B: A { };
index acf8bcc..e541bf9 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 // From N2235
 
index a760a72..9e99d6d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 // From N2235
 
index 1cda29b..3e2685b 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -ftrack-macro-expansion=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-ftrack-macro-expansion=0" }
 
 #define SA(X) static_assert (X, #X)
 
index 1308904..7a9086c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index d8ba419..08a0fe0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // Error: Explicit instantiation of a function template shall not use the
 // inline or constexpr specifiers
 template<class T> constexpr inline T bar(T x) { return x; }
index 6521041..f5137b3 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T> constexpr inline T bar(T x) { return x; }
 
index a81ce5a..2b08478 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr bool is_negative(int x) { return x < 0; }
 
index ee35f1f..55a2329 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48948
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { A(); };
 
index e4cddf7..ce4520d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 // From N2235
 
index 5dda093..8cb32c9 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 // From N2235
 
index bd35e97..ea4f4ab 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 // From N2235
 
index e66d332..39be3ed 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> struct A
 {
index aca7015..fb7570f 100644 (file)
@@ -1,5 +1,5 @@
 // We used to crash on this instead of giving a decent error.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { int i; };
 
index 952c6fd..dee4817 100644 (file)
@@ -1,3 +1,3 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 int x;
 constexpr int& rx = x;
index 1a66840..fccd120 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46289
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 35109e8..a083c85 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51612
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {};
 
index 56936b0..c5a117c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51621
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 3512261..30e0a64 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51327
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 179566b..514cca5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 96de0c3..a8af2e6 100644 (file)
@@ -1,6 +1,6 @@
 // A constructor that might or might not be constexpr still makes
 // its class literal.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct B
index 26ffd3e..c0516f0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49015
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class A;
 
index 982332b..52fc9ea 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 namespace xstd {
 
index 7a75e5f..65a7036 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 4909a08..912cf91 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 #define SA(X) static_assert(X,#X)
index a45e8cd..d4019b2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { int i; };
 struct B: A { constexpr B(): A{} {} };
index 9ddc9f8..901510e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50024
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template< class T >
 struct Container
index 6b822a1..8c344c0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55419
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct P
 {
index 6423588..f255b8d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <type_traits>
 
index 10a0aaa..775c103 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48296
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct X
 {
index 6f1d1a2..afaf2e3 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/48911
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert((X),#X)
 
index 3d595d5..832a161 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 8e1bcd0..fb4c012 100644 (file)
@@ -1,5 +1,5 @@
 // Negative examples from N3092 (FCD)
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 // OK: declaration
 constexpr int square(int x);   // { dg-message "never defined" }
index 9e33779..dbadaa8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct is_funny {
index e4e998b..d10039a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 constexpr T value(T t) { return t; }
index 1cda352..9541bc0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr int f(int i) { return i; }
 #define SA(X) static_assert (X, #X)
index b19c157..eb71900 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // A call is noexcept if it is a valid subexpression of a constant
 // expression, even if it is not itself a constant expression.
 
index 52f2040..7b0c835 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct booleable {
   bool data;
index 56dc683..76d9246 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51305
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr bool ok() noexcept
 {
index c8bdb28..0f68643 100644 (file)
@@ -1,6 +1,6 @@
 // Example from issue 1125 drafting; D() and v were well-formed with the
 // wording approved in Rapperswil, now seems they should be ill-formed.
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 struct B {
   constexpr B(int x) : i(0) { }    // "x" is unused
index 02ec95f..32a023b 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/47200
-// { dg-options "-std=c++11 -w" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-w" }
 
 template < int > struct duration
 {
index 3a9c92c..d8603f8 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/49988
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 template<int ... I> struct X { };
 
index 21036d8..0534b41 100644 (file)
@@ -1,5 +1,5 @@
 // FIXME this is currently invalid, but seems like it should be OK
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { A() { } };
 
index 77ceefe..2d712b6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 110edd4..bb0743a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 77b56af..8ff8998 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr int zero() { return 0; }
 
index f5c319a..41afbe9 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 // From N2235
 
index 9234ad2..d52967a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 constexpr int verysquare(int x) { return x * x; }
 
index b9f8247..8406e49 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -w -ftrack-macro-expansion=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-w -ftrack-macro-expansion=0" }
 
 #include <limits.h>
 extern constexpr int max_s = INT_MAX + 1;  // { dg-error "" }
index 8534f5f..bd2e687 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47504
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 char constexpr sub(char arg)
 { return char(arg - char(1)); }
index 84ff462..21f4c83 100644 (file)
@@ -1,6 +1,7 @@
 // The FCD doesn't allow typedefs and static_assert in constexpr functions,
 // but it should.
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 template <class T>
 constexpr T f(T t)
index c234f4a..8e82ef5 100644 (file)
@@ -1,5 +1,5 @@
 // Positive examples from N3092 (FCD)
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert(X, #X)
 
index 85a26f0..f960e3a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // We decided in Rapperswil that it's OK if any value of decide can produce
 // a constant expression.
 
index 8a1c551..c16fb15 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct C { // literal type
   int m;
index a7c79d7..18648d9 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/51489
 // DR 1313
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct array
 {
index 556b4e7..f54b7c5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 327efa4..e3e13f7 100644 (file)
@@ -1,5 +1,6 @@
 // Test that we catch excessive recursion.
-// { dg-options "-std=c++11 -fconstexpr-depth=5" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fconstexpr-depth=5" }
 // { dg-prune-output "in constexpr expansion" }
 constexpr int f (int i) { return f (i-1); }
 constexpr int i = f(42);       // { dg-error "constexpr evaluation depth" }
index 0c10b4b..f3e4cea 100644 (file)
@@ -1,9 +1,9 @@
 // PR c++/49172
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert((X),#X)
 
-constexpr int g() { return 42; };
+constexpr int g() { return 42; }
 constexpr int(&rg)() = g; // #1
 
 SA(rg() == 42);
index 5091593..7697363 100644 (file)
@@ -1,5 +1,5 @@
 // Negative reference variable tests.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 extern int *p;
 constexpr int& ri = *p;                // { dg-error "p" }
index 3722252..7936536 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50298
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int global_variable;
 
index c256814..ce1ce52 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54777
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S
 {
index 5f4a1d1..697203d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49673: check that test_data goes into .rodata
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-additional-options -G0 { target { { alpha*-*-* frv*-*-* ia64-*-* lm32*-*-* m32r*-*-* microblaze*-*-* mips*-*-* nios2-*-* powerpc*-*-* rs6000*-*-* score*-*-* } && { ! { *-*-darwin* *-*-aix* alpha*-*-*vms* } } } } }
 // { dg-final { scan-assembler "\\.rdata" { target mips*-*-* } } }
 // { dg-final { scan-assembler "rodata" { target { { *-*-linux-gnu *-*-gnu* *-*-elf } && { ! mips*-*-* } } } } }
index b9b5003..7f82671 100644 (file)
@@ -1,5 +1,5 @@
 // Allow static_assert in constexpr constructors, too.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T>
 struct A
index 8003ed9..80f56a1 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56871
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T> constexpr int foo(T);
 template<> int foo(int);
index aa96499..24174ac 100644 (file)
@@ -1,6 +1,6 @@
 // Test for constant initialization of non-literal class (e.g. mutex)
-// { dg-options "-std=c++11 -save-temps" }
-// { dg-do run }
+// { dg-options "-save-temps" }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index 9b76e6f..e908fb3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55944
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct Test
index 2ed8147..70a254c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 struct IsLiteral {};
 
 struct ShouldBeLiteral {
index 1951edb..6d65a62 100644 (file)
@@ -1,8 +1,8 @@
 // Test for constant initialization of class with vtable
-// { dg-options "-std=c++11 -save-temps" }
+// { dg-options "-save-temps" }
 // { dg-final { scan-assembler-not "static_initialization" } }
 // { dg-final cleanup-saved-temps }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 int r = 1;
 // implicit default constructor for A and B is constexpr
index aa060b8..fa1a4c7 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 extern "C" void abort ();
 extern int ar[2];
index 886e693..d161cf5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct A
index cf64979..78065c3 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct B
 {
index bb333b7..272ebd9 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48945
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
   static constexpr bool is();
index c6fd94e..34aa5af 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/50258
-// { dg-options "-std=c++11 -fpermissive" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fpermissive" }
 
 struct Foo {
   static const double d = 3.14; // { dg-warning "constexpr" }
index 562cf76..bebd4f6 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/46977
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template < typename > void
 foo ()
index a7132e1..0f561a4 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr char c1 = "hi"[1];
 constexpr char c2 = "hi"[2];
index 705d355..ee94159 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 constexpr T value(T t = T()) { return t; }
index a59e767..652a08d 100644 (file)
@@ -1,5 +1,5 @@
 // Test for constexpr conversion in case context
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum class E { e1, e2 };
 
index 1e7a92a..27375e2 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46472
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T> struct A {
   T t;
index ba97ab7..b517114 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index d109229..b949bd6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50248, DR 1358
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class Elt, unsigned max>
 struct earray
index 368edb5..a316b34 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> struct A
 {
index 66fcb2a..f0ac222 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { constexpr operator int() { return 42; } };
 
index eac6004..fd0c957 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/59268
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename>
 struct A
index 7f06080..5666629 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr int may_throw(bool decide) {
        return decide ? 42 : throw -1; // { dg-error "throw" }
index 98f25ec..98c2309 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50508
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
   struct integral_constant {
index d72dc5a..32af84e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <typeinfo>
 
index 53cecfa..0c3548c 100644 (file)
@@ -1,6 +1,6 @@
 // Test that we don't have to deal with type punning
 // DR 1188 says this is ill-formed
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 union U
 {
index 2ae7e40..1a5e832 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51675
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 union foo
 {
index bac9cab..ecae28d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51675
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 union foo
 {
index e8e678d..5779666 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/54922
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 #define SA(X) static_assert(X,#X)
 
index a28d15e..e8e7de3 100644 (file)
@@ -1,5 +1,5 @@
 // Core issue 898
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace N { const int i = 42; }
 namespace M { const int j = 42; }
index 18272a6..59a65e5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49520
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace x { void foo(); }
 
index 2004a77..8731187 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct HopefullyLiteral {
   HopefullyLiteral() = default; // Should be a constexpr c'tor as of 12.1/6 and 8.4.2/4
index 1be6a08..00797fa 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 constexpr T value_init() { return T(); }
index 57fe868..8fd9c74 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50234
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert((X),#X)
 
index c2be327..495c6e2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 template<class... T>
 constexpr bool variadics(T&&...) { return true; }
 
index 22ad73d..2c13e3e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47067
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct X {
     virtual void x();
index 32cee96..b938d65 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56291
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class Base
 {
index 0195a86..dc1b708 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/48570
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 extern "C" void abort ();
 constexpr wchar_t foo (int i) { return L"0123"[i]; }
index 586e0ba..db79a9c 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/48570
-// { dg-do compile }
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr wchar_t c1 = L"hi"[3];       // { dg-error "out of bound" }
 constexpr char16_t c2 = u"hi"[3];      // { dg-error "out of bound" }
index c1a5f39..e7ccb64 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options --std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct B {
        int i;
index 227bab1..665f79d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options --std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
        int i, j;
index c68d622..9c6fd56 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options --std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct X {};
 
index 59cf2ea..5732162 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "--std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index 24bf339..f9c879e 100644 (file)
@@ -1,5 +1,5 @@
 // Core 1212
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T, class U> struct assert_same_type;
 template <class T> struct assert_same_type<T,T> {};
index 7f85bc3..fbbc6a1 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // PR c++/33837
 void foo()
 {
index 8f4a86c..effe08d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // PR c++/33838
 template<typename T> struct A
 {
index 5747e5c..4b81b5a 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-std=gnu++11 -Wall" } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-Wall" } */
 
 typedef float v4f __attribute__((vector_size(4*sizeof(float))));
 
index d58011b..cecff3c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/33045
 int && f ();
 
index 7b268fd..84c7a03 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> 
 struct is_same 
index 381f636..846d0bf 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/34271
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> struct A
 {
index 01a6556..9fa8e23 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/35316
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> struct A
 {
index c39f6f1..eae318d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, typename U>
 struct is_same
 {
index e0348ea..f19819c 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/38640
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int N> void foo (decltype (N));
 template<long int N> void foo (decltype (N));
index 9f2398e..5cf8439 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/39070
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename X> struct junk {
    template<typename Z> static Z y();
index c3a4453..6e5854d 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/36628
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <typeinfo>
 #include <string.h>
index 0f639a0..4c1571a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37875
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename> struct X {};
 X<decltype(1 > 2)> x;
index 81cb56b..f316f50 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> 
 struct is_same 
@@ -46,7 +45,7 @@ int bar(int);
 CHECK_DECLTYPE(decltype(foo), int(char));
 
 decltype(bar) z; // { dg-error "overload" "overload" }
-// { dg-error "invalid type" "invalid" { target *-*-* } 48 }
+// { dg-error "invalid type" "invalid" { target *-*-* } 47 }
 
 CHECK_DECLTYPE(decltype(&foo), int(*)(char));
 CHECK_DECLTYPE(decltype(*&foo), int(&)(char));
index bba848c..5fb3540 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42277
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S { int s; };
 template <int N>
index a6e973f..e4dc201 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/6709 (DR 743)
 // PR c++/42603 (DR 950)
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 T make();
index 623163f..b3ff8b8 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42761
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename _Tp> _Tp* fn();
 
index a254324..731eed7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int x, &&y = static_cast<int &&>(x);
 typedef decltype((y)) myInt;  // `y' is a parenthesized id-expression of type int that is an lvalue
index 3b3a7d5..0ff9963 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47068
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> struct broken {
   int member;
index 04465b9..e57376f 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47851
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct Type {
   void display_type();
index 705fd64..0d320da 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { };
 
index 0f0cd42..3174a89 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48617
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T, decltype(T())> // #
 struct A {};
index 591bb03..c1c5a1b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44175
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <bool, class T> struct enable_if { };
 template <class T> struct enable_if <true, T> { typedef T type; };
index ae1cb2a..d87299c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44175
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <bool, class T> struct enable_if { };
 template <class T> struct enable_if <true, T> { typedef T type; };
index 5730056..aaff5df 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> 
 struct is_same 
@@ -56,7 +55,7 @@ public:
 
 CHECK_DECLTYPE(decltype(aa.*&A::a), int&);
 decltype(aa.*&A::b) zz; // { dg-error "cannot create pointer to reference member" "cannot" }
-// { dg-error "invalid type" "invalid type" { target *-*-* } 58 }
+// { dg-error "invalid type" "invalid type" { target *-*-* } 57 }
 CHECK_DECLTYPE(decltype(caa.*&A::a), const int&);
 
 class X { 
index 2e7283e..25eeb9d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49369
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class,class> struct assert_same;
 template <class T> struct assert_same<T,T> {};
index ce03ec1..bffcf1c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49921
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct Local
 {
index a53f9d0..02c6316 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/50075
-// { dg-options "-std=c++11 -ftemplate-depth=10" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-ftemplate-depth=10" }
 
 template <typename T>
 auto make_array(const T& il) ->
index 935423a..63d5a49 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/50084
-// { dg-options "-std=c++11 -fno-inline" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-inline" }
 
 template<typename>   struct remove_reference;
 template<typename T> struct remove_reference<T&> { typedef T type; };
index 9d7c318..028e506 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50870
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 struct impl
 {
index ee9537d..daffaf0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50870
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class V>
   struct impl
index 2cf34c0..c426f69 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51265
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct Funny
 {
index 5db826f..c14e156 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> 
 struct is_same 
index 55258f4..1b194ab 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51222
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct add_rref {
index 8e2abaa..f6700a3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55564
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename T, decltype(sizeof(T)) N>
 auto array_size(T(&)[N]) -> decltype(N) { return N; }
index 29ce815..39fc4eb 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56059
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 typedef int Int;
 template<typename T> struct baz { };
index 4c31a2b..3842e09 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> 
 struct is_same 
index 2f742ce..10086c5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> 
 struct is_same 
index c13ff8d..9db3db0 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/34271
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> struct A
 {
index 5185f9a..380ca28 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, typename U> struct same_type;
 template<typename T> struct same_type<T, T> {};
 
index 1f36b18..4956e88 100644 (file)
@@ -1,6 +1,5 @@
 // Positive test for defaulted/deleted fns
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index fe3eae5..8537268 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/40381
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 65cd0e2..cd4e293 100644 (file)
@@ -1,5 +1,5 @@
 // Core issue 901
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index ad15a0e..68dc5d0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T>
 struct NonCopyable {
index 73072e2..0c07fa7 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/39866
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A {
   A& operator=(const A&) = delete; // { dg-bogus "" }
index 99400ac..fabcc23 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38796
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert ((X), #X)
 
index 25b2d5a..f866c8e 100644 (file)
@@ -1,7 +1,7 @@
 // Test that non-inline default causes the function to be defined even if
 // it isn't used.
 
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_ZN1AC1Ev" } }
 
 struct A
index 48529f5..0a3c0de 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A                       // { dg-error "const|operator=" }
 {
index 7dd1734..6d84a1e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void f(char i, int j) = delete;        // { dg-message "<deleted>" }
 void f(int i, ...);            // { dg-message "void f" }
index f7de073..2b93a7b 100644 (file)
@@ -1,7 +1,6 @@
 // We don't allocate a cookie to help us run the destructor if it's trivial,
 // even if it's deleted.
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index 6d2a26a..a082d51 100644 (file)
@@ -1,7 +1,6 @@
 // We allocate a cookie to help us run the destructor if it's non-trivial,
 // even if it's deleted.
-// { dg-options "-std=c++0x" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct B { ~B() {} };
 struct A
index 5f05424..bd83c7f 100644 (file)
@@ -1,5 +1,5 @@
 // Negative test for defaulted/deleted fns.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void f();                      // { dg-message "previous" }
 void f() = delete;             // { dg-error "deleted" }
index 49919ef..affda20 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46497
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
   A(A&&) = default;
index 09a211f..63c98e6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46736
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct U {
   U();
index 86dbed9..5afcd1d 100644 (file)
@@ -1,6 +1,5 @@
 // Test that a virtual defaulted constructor is still virtual.
-// { dg-do run }
-// { dg-options -std=c++11 }
+// { dg-do run { target c++11 } }
 
 int r = 1;
 
index be2fd2f..9e6cbc3 100644 (file)
@@ -1,5 +1,5 @@
 // Test for checking of exception specifications on defaulted fns
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 7f9aed6..32c6f2e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48280
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S {
   template < typename > S (const S &) = default; // { dg-error "" }
index 26b0c91..644fe1b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48930
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "note" }
 
 struct A
index b9be726..f14a0e8 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49066
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 void foo() = delete;           // { dg-message "declared here" }
 void foo();
index 8f71e9e..d26e744 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47544
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_ZN1sIiEC2Ev" } }
 // { dg-final { scan-assembler-not "_ZN1sIiED2Ev" } }
 
index e8b44da..aa90099 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/49102
 // PR c++/50034
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
   A() = default;
index 9e6382e..8e2989b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46696
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 21b1378..75e89c8 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37006
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct A {
index 2440b94..ce86f57 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49507
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T>
 struct ConcretePoolKey
index d866872..2ac28ba 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/39164
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index a365483..e5b94b6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50531
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename T>
 class DataFilter
index 463cc34..ff777f6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "__cxa_deleted_virtual" } }
 
 struct A
index 8312ba1..adf9c82 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/53096
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct foo
 {
index fe847d4..a4963c4 100644 (file)
@@ -1,5 +1,5 @@
 // DR 1402
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> T&& move(T& t);
 
index 3e5e926..ca07d76 100644 (file)
@@ -1,7 +1,6 @@
 // PR c++/37208: SFINAE and deleted functions.
 
-// { dg-options "-std=c++11" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 template<int> struct A { };
 
 template<typename T>
index c160b39..8da1364 100644 (file)
@@ -1,5 +1,5 @@
 // DR 1402
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> T&& move(T& t);
 
index a8d7e98..96394ea 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/37234
-// { dg-do link }
-// { dg-options "-std=c++11" }
+// { dg-do link { target c++11 } }
 
 template <typename T>
 class foo {
index 05f06c9..440c58d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37906
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct b
 {
index 00a24f0..089d618 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38701, 38702
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void foo() = default;          // { dg-error "cannot be defaulted" }
 namespace
index 6ec9363..383766d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38649
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 2907b03..8d3aef8 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/39153
-// { dg-options "-std=c++11 -fno-inline" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-inline" }
 
 struct _Impl_base
 {
index de8a1a9..629b125 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48319
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // We were failing to recognize declval<_Args1> as dependent.
 
 template<typename Tp> Tp declval() noexcept;
index 0e53dcb..9bf7cfe 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <int U>
 struct TypeA
index 70162a1..4cc5653 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test: Implicit cast to rvalue when eliding copy
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 811c539..b3d13fb 100644 (file)
@@ -1,5 +1,5 @@
 // Core 1148: should be able to move from value parameter on return
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index f302605..0870a80 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test: Implicit cast to rvalue when eliding copy
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 41dd622..bf17429 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/38021
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 enum : { };    // { dg-error "expected" }
 enum : 3 { };  // { dg-error "expected" }
index 825cc64..daffd19 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48534
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum class OpSE : bool;
 
index a2bd353..a449f1c 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/48969
-// { dg-options "-std=c++11 -ftemplate-depth=10" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-ftemplate-depth=10" }
 
 template<unsigned int N> struct Pair { };
 struct Foo { enum { Mask = 1 }; } foo;
index 46d2686..ea55cfe 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/48780
-// { dg-options "-std=c++11 -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 typedef __builtin_va_list __gnuc_va_list;
 typedef __gnuc_va_list va_list;
index 3f63724..5e4a532 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/48780
-// { dg-options "-std=c++11 -fabi-version=5 -Wabi" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=5 -Wabi" }
 
 typedef __builtin_va_list __gnuc_va_list;
 typedef __gnuc_va_list va_list;
index fe791f1..2be758d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48106
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum class E : char
 {
index 6173774..07beee5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44311
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum class A { Val0, Val1 };
 
index 941d85b..207fcab 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48935
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum class ENUM { a };
 
index e67928b..32c4609 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48536
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 #include <climits>
 
index c37eebe..de16596 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47277
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int main(void) {
   enum e {};
index de423aa..b04fd52 100644 (file)
@@ -1,5 +1,6 @@
 // We shouldn't give an ABI warning about promotion in switch.
-// { dg-options "-std=c++11 -fabi-version=5 -Wabi" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=5 -Wabi" }
 
 enum class Foo { X };
 void test(Foo val)
index 57eccaf..c101134 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/38637
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> enum E : int { e };      // { dg-error "declaration|expected" }
index 0fcd9c9..8937cc7 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47635
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum A { };
 void A::f() { }                        // { dg-error "not a class" }
index aab0f5e..ac449f0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do compile }
-// { dg-options "-pedantic -std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 enum x { y, };
index a21067e..cfc5df3 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/54216
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 enum {};            // { dg-warning "empty anonymous" }
 
index 3e630d6..940bc04 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/38064
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 enum class E { elem };
 
index adf24b9..9e908c0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/40633
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template< typename T >
 struct wrap {
index fd41322..f896440 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/40639
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template< typename T >
 struct wrap {
index 74bd228..c3832ae 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37946
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 enum class E : char
 {
index ed6635d..6788f8a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37816
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class A
 {
index b0205a9..15bee83 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/47704
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void
 foo ()
index 70a2103..f359b42 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum class E { };
 E f();
index e63f418..8e23179 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 typedef unsigned volatile long long uvlonglong;
 
index 5257a9e..82878a6 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do run }
-// { dg-options "-O2 -Wtype-limits -std=c++11" }
+// { dg-do run { target c++11 } }
+// { dg-options "-O2 -Wtype-limits" }
 extern void link_error (void);
 
 enum Alpha : unsigned char {
index 59abd16..33557f2 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/34395
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int... N> void foo (int... x[N])      // { dg-message "int \\\[N\\\]\\.\\.\\. x" }
 {
index d39e7f0..e6af294 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38656
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> int foo();
 
index deee9a2..75390f0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47336
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename T>
 void g(T t)
index fa638a4..bd73b2a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49156
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T> T declval();
 
index 0baa500..e46c46d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49181
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace std
 {
index e059e22..515f8f5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48284
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename C>
 auto g(C& c) -> decltype (c.f()) { return c.f(); } // { dg-message "decltype .c\\.f" }
index 9c9f1c9..3c9b8ba 100644 (file)
@@ -1,5 +1,5 @@
 // Test for printing the type of T{} in error messages.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T, T t> struct A { };
 template <class T> A<T,T{}> f(T t); // { dg-message "T{}" }
index e3004c7..ea4fa8a 100644 (file)
@@ -1,5 +1,5 @@
 // Test for explicit conversion ops from N2437.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class U; class V;
 class T
index 9938f54..715855c 100644 (file)
@@ -1,5 +1,5 @@
 // Test for explicit conversion ops in various conversion situations.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 typedef void (*pfn)();
 
index 6933c8c..678076c 100644 (file)
@@ -1,5 +1,5 @@
 // Test for "contextually converted to bool"
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index bbefb68..663878e 100644 (file)
@@ -1,5 +1,5 @@
 // Negative explicit conv test.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A {
   A(const A&, int = 0);                // { dg-message "note" }
index 4573fc6..1adb8d6 100644 (file)
@@ -1,6 +1,5 @@
 // test for extension of DR 899 to handle template ctors
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 int r = 1;
 
index 741b9a2..18f31b4 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/47080
-// { dg-options -std=c++11 }
+// { dg-options "" }
+// { dg-do compile { target c++11 } }
 
 struct A {
   explicit operator int();     // { dg-message "qualification conversion" }
index ed3b494..574796d 100644 (file)
@@ -3,7 +3,8 @@
 // can be converted to type T with a qualification conversion (4.4) are
 // also candidate functions.
 
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 struct A { };
 struct B: A { };
index 9cec57c..2779a2b 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 template <typename> void f() {}
 extern template void f<int>();
index 7ec1864..3eb870b 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 template <typename> class S {};
 extern template class S<int>;
index 27cb057..3081d67 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37766
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int a = 1;
 template<int& b = a> void f() {
index c119e86..663f400 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/46831
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 struct B { };
 struct D : B { };
index 0248b60..52e6f38 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55724
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<int N> struct S {};
 template<typename T = int, T N> void f(S<N>) {}
index a147538..7ec5884 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // opaque enum declarations
 enum class E1;
index 59c8045..609c272 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //This error is diagnosed at instantiation time
 template<typename T> struct S1
index d11dc74..b8f062e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct S1
 {
index 682fd93..c8cd6f6 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 namespace S1
 {
index 162b4bf..aee916e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T> struct S1
 {
index a0e7486..d1d6230 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 namespace one
 {
index a42d93c..ccce13a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 enum class E1 : int; // { dg-error "previous definition" }
 enum E1 : int;  // { dg-error "scoped/unscoped mismatch" }
@@ -22,8 +21,8 @@ enum E6 : int; //ok
 enum class E7;
 enum class E7 : int; //ok
 
-enum class E3 e3; // { dg-warning "scoped enum must not use" }
-enum struct E3 e4; // { dg-warning "scoped enum must not use" }
+enum class E3 e3; // { dg-error "scoped enum must not use" }
+enum struct E3 e4; // { dg-error "scoped enum must not use" }
 enum E5 : int e5; // { dg-error "expected|invalid type" }
 
 enum E6 : int { a, b, c }; // { dg-error "previous definition" }
@@ -47,7 +46,7 @@ namespace N2
 {
     enum class N1::E6 { e1, e2, e3 }; // { dg-error "does not enclose" }
     enum N1::E7 : int { e1, e2, e3 }; // { dg-error "does not enclose" }
-};
+}
 
 enum class N1::E6 { e1, e2, e3 };
 enum N1::E7 : int { e1, e2, e3 };
index 34e9af0..3c67f54 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template<typename T> struct S1
 {
index 1d85162..5174226 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //This instatiation is ok
 template<typename T> struct S1
index ba7d3c7..4f1475a 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template<typename T> struct S1
 {
index 838d250..ae2c603 100644 (file)
@@ -1,5 +1,5 @@
 // From N1791
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class C;
 typedef C Ct;
index 7dbc894..c4df8a0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47721
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 // template type parameter friend:
 
index 34f20cf..ccae6f0 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
-// { dg-options "-O3 -msse2 -std=c++11" }
+// { dg-require-effective-target c++11 }
+// { dg-options "-O3 -msse2" }
 // { dg-require-effective-target sse2 }
 
 // You can make NON-template typedefs with a large alignment.
index 0a28354..3f0ef14 100644 (file)
@@ -1,6 +1,7 @@
 // PR c++/43031
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-options "-pedantic" }
 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
+// { dg-require-effective-target c++11 }
 
 // c++11 attributes that apply to types are ignored for now
 
index 9b76942..59626b2 100644 (file)
@@ -1,6 +1,7 @@
 // PR c++/43093
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-options "-pedantic" }
 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
+// { dg-require-effective-target c++11 }
 
 // c++11 attributes that apply to types are ignored for now
 
index dff46b4..eb585a8 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "-std=c++11 -Wunused -pedantic-errors" }
-// { dg-do compile }
+// { dg-options "-Wunused -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 // Test for syntax support of various attribute permutations.
 
 int
index 7df63cf..ec98ece 100644 (file)
@@ -1,5 +1,6 @@
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-options "-pedantic" }
 // { dg-do compile { target { i?86-*-* && ilp32 } } }
+// { dg-require-effective-target c++11 }
 
 struct A {
   [[gnu::fastcall]]
index aa1491a..9c834a4 100644 (file)
@@ -1,5 +1,6 @@
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-options "-pedantic" }
 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
+// { dg-require-effective-target c++11 }
 
 extern int * ([[gnu::stdcall]] *fooPtr)( void); // { dg-error "expected" }
 int * [[gnu::stdcall]] myFn01( void) { return 0; }// { dg-warning "ignored" }
index ad98db9..6a8398b 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 //  Integer imaginary...
 
index 94fd8fc..c738a48 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++11 -fno-ext-numeric-literals" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-ext-numeric-literals" }
 
 //  Integer imaginary...
 
index 70454db..d4cd2e8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 struct S
 {
   S();
index 7ab73bd..23921c7 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46807
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // In C++98/03, B::B(const B&) is trivial because A::A(const A&) is trivial,
 // even though doing overload resolution would mean calling the template
 // constructor.  In C++11, we do overload resolution to determine triviality.
index 777ed54..7eb3371 100644 (file)
@@ -1,5 +1,5 @@
 // Test for implicitly deleted destructors.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "default definition would be ill-formed" }
 // { dg-prune-output "within this context" }
 
index fcc4761..6a0c711 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46103
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct MoveOnly {
   MoveOnly(const MoveOnly&) = delete;
index 9f5841d..3471ad9 100644 (file)
@@ -1,6 +1,6 @@
 // Test that we consider base dtors in determining whether
 // a derived ctor is deleted even if the ctor is trivial.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index ab51a87..d52f153 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50500
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // If a class declares move operations, the implicitly declared copy
 // operations are deleted.
index ae516b7..2995894 100644 (file)
@@ -1,7 +1,6 @@
 // Test that the synthesized C copy constructor calls the A template
 // constructor and has the appropriate exception specification.
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 int r = 1;
 
index abef33a..8176a6e 100644 (file)
@@ -1,6 +1,5 @@
 // Basic runtime test for implicit move constructor
-// { dg-do run }
-// { dg-options -std=c++11 }
+// { dg-do run { target c++11 } }
 
 int m;
 
index 16cd4b4..eeb4aa9 100644 (file)
@@ -1,6 +1,6 @@
 // Test that a base with only a move constructor causes the implicit copy
 // constructor to be deleted.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A                       // { dg-message "declares a move" }
 {
index 89ab44a..f9ae535 100644 (file)
@@ -1,6 +1,6 @@
 // Test that the default B copy constructor calls the deleted A
 // copy constructor.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A                       // { dg-message "declares a move" }
 {
index 41781fb..d3e85d0 100644 (file)
@@ -1,5 +1,5 @@
 // Circular implicit declarations were causing errors
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct Ray;
 
index 4d9d6a6..eaa7d82 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44909
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // Declaring A<D<E>>'s copy ctor means choosing a ctor to initialize D<E>,
 // which means choosing a ctor for C<B<E>>, which meant considering
 // C(const B<E>&) which means choosing a ctor for B<E>, which means choosing
index ba7f1b6..68575ca 100644 (file)
@@ -1,6 +1,6 @@
 // The hack for PR c++/44909 breaks this testcase.  We need feedback
 // from the C++ committee to know how to proceed.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index dd5dd76..0952a42 100644 (file)
@@ -1,5 +1,5 @@
 // Test that private base dtor makes derived ctor deleted
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 9960310..c656fb9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 56c5bd6..48e95a0 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -g" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g" }
 
 struct A
 {
index 282402b..228e8ec 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 257487e..cc23d4b 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index 95cf932..bd021e6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 2032ad3..0404880 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55261
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index cc10558..c2d33bf 100644 (file)
@@ -1,7 +1,7 @@
 // Discussions on the core reflector indicate that not inheriting base copy
 // constructors was a deliberate choice.
 
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { A(int); };
 struct B: public A
index 58e848b..ba6849f 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56285
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct foo {
     explicit foo(int&&) {}
index 621ba60..15e5657 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 7116e2f..e8dc84d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct B1 {
   B1(int);
index b6754dc..16dc197 100644 (file)
@@ -1,5 +1,5 @@
 // From N3337
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct B1 {
   B1(int);
index a8aa6d9..8c79c83 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct B1 {
   B1(int) { }
index 5ac88d6..98ac188 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 extern "C" int printf (const char *, ...);
 template< class T >
index 2260824..280ccfe 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index d55d3d2..74c9496 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index dc5e86b..3975101 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class A
 {
index 6eb5bf2..1e25eb2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 typedef int IA[2];
 typedef double DA[2];
index e3008cc..925ab16 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 typedef int IRT[2];
 
index 82031cb..bc6d272 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/52905
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 13ac0b3..6ae32a6 100644 (file)
@@ -2,8 +2,8 @@
 // supported by the working draft, but is necessary for perfect forwarding
 // of initializer-lists to things that can take a std::initializer_list.
 
-// { dg-options "-std=c++11 -fdeduce-init-list" }
-// { dg-do run }
+// { dg-options "-fdeduce-init-list" }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 
index a2ced71..78ec8cb 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 template<typename _Tp>
 _Tp&& declval() noexcept;
 
index 673a05f..d3b0fc3 100644 (file)
@@ -1,7 +1,6 @@
 // Test that we properly extend the lifetime of the initializer_list
 // array even if the initializer_list is a subobject.
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 
index 914b2c8..77fc961 100644 (file)
@@ -1,7 +1,6 @@
 // Test that we properly extend the lifetime of the initializer_list
 // array even if the initializer_list is a subobject.
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 
index 9999f2e..3a5e908 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/41997
-// { dg-options "-std=c++11 -O2 -fdump-tree-optimized" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-O2 -fdump-tree-optimized" }
 // { dg-final { scan-tree-dump-not "_0" "optimized" } }
 // { dg-final { cleanup-tree-dump "optimized" } }
 
index 87c926e..b43ffc3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51738
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct Index
 {
index fb5cc6a..5d12163 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54325
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class base
 {
index 63c341c..a9dbc90 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54325
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class Base {
 public:
index bb40b78..ac84266 100644 (file)
@@ -1,6 +1,5 @@
 // Test for value-initialization via {}
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 void * operator new (__SIZE_TYPE__, void *p) { return p; }
 void * operator new[] (__SIZE_TYPE__, void *p) { return p; }
index 594d814..1b4cde7 100644 (file)
@@ -2,8 +2,7 @@
 // constructor but defaulted default constructor.  The FDIS got this
 // wrong; see c++std-core-19883.
 
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index fab5771..fb8e85b 100644 (file)
@@ -1,6 +1,5 @@
 // Basic uses of initializer lists
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 
index 0f78b2c..80a8837 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38380
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 namespace std
 {
index 1948d3e..024466e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38684
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index f18f48f..5efdc67 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38698
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "note" }
 
 struct A
index 53c9059..bba2267 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/39056
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 #include <complex>
 
index 1760c61..41331c4 100644 (file)
@@ -1,6 +1,6 @@
 // Bug: We weren't doing the normal replacement of array with pointer
 // for deduction in the context of a call because of the initializer list.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 55fc4a4..acd0495 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Just discard errors pointing at header files
 // { dg-prune-output "include" }
index b6d1b1a..9132bd2 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 extern "C" void abort();
 
index 4e78bad..6ff4689 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 void f(int i);
 
index 755c267..bcf90c8 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/40308, 40311
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 template< typename T >
 struct test {
index 6edd069..ef47d3e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Allow other errors, too
 // { dg-prune-output "error" }
index c0133dd..550c8f6 100644 (file)
@@ -1,8 +1,7 @@
 // Test that conversion to std::initializer_list takes priority over other
 // user-defined conversions.
 
-// { dg-do link }
-// { dg-options "-std=c++11" }
+// { dg-do link { target c++11 } }
 
 #include <initializer_list>
 
index ce2982b..0ee37e5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/40689
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class X
 {
index bad9e00..6492b26 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/40689
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class X
 {
index 19aefd3..0cbfe24 100644 (file)
@@ -1,5 +1,5 @@
 // Core issue 934/1288
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 int i;
 
index bc37fe6..7e73df0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index e4c99c4..d885744 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/39923
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index cf0bfda..dd41db1 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/41754
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <map>
 #include <string>
index 1b9dfca..81d304f 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/42059
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" { target { ! c++1y } } }
 
 void
 foo (int i)
index 95f93ac..8567119 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/42061
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 int& i = { j };        // { dg-error "invalid initialization|was not declared" }
index b4125a5..3bf995a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42060
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void foo()
 {
index dbedeb9..9174164 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42331
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class Mesh
 {
index 063a08f..e62e0cc 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index e2c21ab..eb78f3c 100644 (file)
@@ -1,5 +1,5 @@
 // Testcase for variadic init list deduction.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 85594a6..f34a0ca 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43028
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 7db5e78..c5c02fc 100644 (file)
@@ -1,5 +1,5 @@
 // Test that we try normal init if no list ctor is viable.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 6376473..9ab4b55 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44045
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct base
 {
index 20df343..335a7da 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44157
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 4b85475..f8b824d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/41510
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct B
 {
@@ -14,11 +14,11 @@ struct A
 void f()
 {
   A a = { 1, 2 };
-};
+}
 
 template <class T> void g()
 {
   A a = { 1, 2 };
-};
+}
 
 template void g<int>();
index 2d41246..2a2b208 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44358
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 8fed990..dfe6d4a 100644 (file)
@@ -1,5 +1,5 @@
 // DR 990
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 1a4b8e5..816f94c 100644 (file)
@@ -1,5 +1,5 @@
 // DR 990
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index afd8315..169c063 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { int i; };
 
index 8e5edb9..22e6b45 100644 (file)
@@ -1,5 +1,5 @@
 // Test for initializer-list 'explicit' rule
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 0592fa2..6e6a11a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54835, DR 1518
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index f07cf1d..7ae4928 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44703
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index c1ab63d..fcd71cc 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum Unscoped { };
 enum class Scoped { };
index 6e524f4..1cae23a 100644 (file)
@@ -1,5 +1,5 @@
 // Test that using T{} at file scope doesn't create a static temporary.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler-not "local" } }
 
 struct A { };
index 1c64033..609e07b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index c4c1867..31bd18d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46289
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 64bc314..39a3b5e 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/48281
-// { dg-options "-std=c++11 -O2" }
-// { dg-do run }
+// { dg-options "-O2" }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 
index 91f7d5e..0b34ff9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { ~A() = delete; };   // { dg-message "declared" }
 
index b8a5cf2..7a79c67 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48726
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <memory>
 
index cfed154..0fa4e3f 100644 (file)
@@ -1,6 +1,5 @@
 // Test for non-trivial list-initialization with array new.
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index ed8f00a..5f253ca 100644 (file)
@@ -1,5 +1,5 @@
 // Test for narrowing diagnostics
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 50b5d18..41fb03b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45418
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A1 { };
 struct A2 {
index 1a63570..9fd750d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47184
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S
 {
index 8a70513..3ca8781 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45378
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 int main()
 {
index 8e53327..998e4c8 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/49216
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 extern "C" void abort();
index d50c230..52a8ff9 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49355
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <string>
 
index 917bc93..a40edd3 100644 (file)
@@ -1,5 +1,6 @@
 // Test for -Wno-narrowing
-// { dg-options "-std=c++11 -pedantic-errors -Wno-narrowing" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic-errors -Wno-narrowing" }
 
 int i;
 float d = { i };
index 72ad364..5339dbf 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47453
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 // invalid
 int a({0});                    // { dg-error "" }
index 1a44b81..5c59f40 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50054
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 void g( const int& (a)[1] ) {} // { dg-error "array of references" }
 
index a04e191..aab21e3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50209
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S { int i,j; };
 
index 3974042..6371c16 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49996
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 631bbd0..3d02960 100644 (file)
@@ -1,6 +1,5 @@
 // Test for initlist lifetime
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 
index 3a25e13..d739ea3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51399
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index a72c0ab..0094047 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51475
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
@@ -13,4 +13,4 @@ struct B
     const std::initializer_list<A>& x;
 };
 
-B b = {{1}}; // { dg-error "invalid conversion|cannot convert" }
+B b = {{1}}; // { dg-error "" }
index 1550d47..78e5308 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51553
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct X
 {
index 3612706..061734f 100644 (file)
@@ -1,5 +1,5 @@
 // Core 1270
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 73c9242..7dbbf2d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37932
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 typedef enum { AA=1, BB=2 } my_enum;
 
index e2c85d7..ca0bc46 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37740
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 0ad3946..bb6414c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37860
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct b
 {
index 287b7e0..69813b6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_ZN1Q2V11fEv" } }
 // { dg-final { scan-assembler "_ZN1Q2V11iE" } }
 
index 19fb9ad..6ad9d65 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace Q {
   inline namespace V1 {
index 4e8449e..7e24e80 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace C
 {
index 34a5a5a..0a78be9 100644 (file)
@@ -6,8 +6,7 @@
 //   See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html under the
 //   section "Revision 1 Summary and Rationale" for more details.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 240143c..4da9d46 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50220
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template<typename Foo> struct Foobar {};
 
index 1cc7bb6..52bb874 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/44160
-// { dg-options -std=c++0x }
-// { dg-do link }
+// { dg-do link { target c++11 } }
 
 int main()
 {
index 2129051..adb40ed 100644 (file)
@@ -1,6 +1,5 @@
 // Test that array capture by copy works.
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index b5ba066..d13e2c0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50437
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template <typename T>
 void f()
index 704c240..16fd0a7 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 #include <cassert>
 
 int main() {
index 82cc984..3f9da7e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50736
-// { dg-options "-std=c++0x -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 int i;
 void f();
index 51e55a7..49fbdf3 100644 (file)
@@ -1,5 +1,6 @@
 // FDIS 5.1.2/8
-// { dg-options "-pedantic-errors -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic-errors" }
 
 struct S2 { void f(int i); };
 void S2::f(int i) {
index 7e7541c..28ea533 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 #include <cassert>
 
index 5f6f0b3..c6150f1 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index d2457d6..884163a 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/52026
-// { dg-options "-std=c++11 -O" }
-// { dg-do run }
+// { dg-options "-O" }
+// { dg-do run { target c++11 } }
 
 template<bool B>
 int func() {
index 5409d5c..08d8bbf 100644 (file)
@@ -1,6 +1,6 @@
 // Test for conversion from stateless lambda to function pointer.
 
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-hpux10* } } } } }
 
 inline void f()
index fc19c99..cd4cf7e 100644 (file)
@@ -1,7 +1,6 @@
 // Test for conversion from stateless lambda to function pointer.
 
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 typedef int (*pfn)(int);
 
index e4e7daf..ebc6c14 100644 (file)
@@ -2,7 +2,7 @@
 // work properly for variadics.  Make sure that we can still use the lambda
 // normally.
 
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 void f()
 {
index 6584d28..66c0910 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43641
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct B
 {
index 53d8e99..f5408a9 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45080
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 typedef void(*pfn)();
 
index bd90437..3b3fda9 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/55015
-// { dg-do link }
-// { dg-options -std=c++11 }
+// { dg-do link { target c++11 } }
 
 typedef void (*VoidFunc)();
 inline VoidFunc GetFunc() { return [](){}; }
index 1af2a95..91f5d62 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 int main() {
   int i;
index 239a99c..232c56b 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 int main() {
   int i;
index d77e57e..caffb7f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 int main() {
   int i;
index 7356872..6d27d75 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 int main() {
   int i;
index 76ed744..4a63d00 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 void f()
 {
index e263145..8dfb2fa 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index 07fc189..b8b15d0 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/43502
-// { dg-options "-std=c++0x -fcompare-debug" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fcompare-debug" }
 
 void g (int n)
 {
index 0ab0cdd..b36ca21 100644 (file)
@@ -1,6 +1,7 @@
 // PR c++/59791
 // We force the gimple dump to trigger use of lang_decl_name.
-// { dg-options "-std=c++11 -fdump-tree-gimple" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fdump-tree-gimple" }
 // { dg-final { cleanup-tree-dump "gimple" } }
 
 template < class T > void
index f93e78a..88970a9 100644 (file)
@@ -1,6 +1,6 @@
 // Testcase for DR 975.
 
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 bool b;
 struct A { int fn1(); const int& fn2(); };
index 5c63409..fdbb4e1 100644 (file)
@@ -1,7 +1,8 @@
 // Test that this is accepted even when pedantic now that it's part
 // of the standard.
 
-// { dg-options "-std=c++0x -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 bool b;
 template <class T>
index c932c09..6ada757 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 int main() {
   int i = 0;
index cc5cc54..b0e2d9f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 #include <cassert>
 
 int main() {
index eeb9814..5cf016c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43875
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 void f();
 void f(int);
index 0699358..cefa24d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 int main()
 {
index f47c5ba..35104c3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43886
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 void f2() {
   int i = 1;
index f02fb29..1c59393 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/55223
-// { dg-options "-std=c++11 -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 // { dg-final { scan-assembler "_ZN8functionC1IZN1CIiE4testES_Ed_UliE_EET_" } }
 
 struct function
index bbc2a1c..7cc3f8f 100644 (file)
@@ -1,5 +1,5 @@
 // Test that capture by copy uses direct-initialization.
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index ea5060d..7516fe0 100644 (file)
@@ -1,9 +1,9 @@
 // Test that we properly clean up if we get an exception in the middle of
 // constructing the closure object.
-// { dg-options -std=c++0x }
 
 // This test fails because of PR 41449; it isn't a lambda issue.
 // { dg-do run { xfail *-*-* } }
+// { dg-require-effective-target c++11 }
 
 struct A
 {
index 0c94b55..1ef510a 100644 (file)
@@ -1,7 +1,7 @@
 // PR c++/47263
 // PR c++/49260
-// { dg-options "-std=c++0x -fno-asynchronous-unwind-tables -fno-dwarf2-cfi-asm" }
-// { dg-do run }
+// { dg-options "-fno-asynchronous-unwind-tables -fno-dwarf2-cfi-asm" }
+// { dg-do run { target c++11 } }
 
 #include <exception>
 
index 92c5431..3dc7f87 100644 (file)
@@ -1,6 +1,6 @@
 // Test that error messages about creating the closure object refer to
 // the lambda-introducer.
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 213f7c0..4ddd38c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42399
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct A {
   A();
index b292d88..1c5cfdb 100644 (file)
@@ -2,7 +2,7 @@
 // declared in the closure type" -- test that there isn't a member of the
 // closure with the same name as the captured variable.
 
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct A: public T
index f161da8..0123034 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/50114
-// { dg-options "-std=c++0x -w" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-w" }
 
 int open()
 {
index 1ea8f4d..e4a11ea 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43790
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 6468f18..6a31e0a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42083
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<typename F>
 decltype(F()) run(F f) // { dg-message "note" }
index 8ff3647..03a7a4b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47795
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 class Klass
 {
index 77c773b..8c08e90 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47242
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template < typename > void
 bar ()
index 305db81..914e0f7 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51227
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<int> int foo()
 {
index ddf3527..408af42 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/51464
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<int = sizeof([])> struct A {}; // { dg-error "lambda" } 
index 946377e..d0ee866 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/52487
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct A;         // { dg-error "forward declaration" }
 
index a93857e..92a165d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 #include <cassert>
 
index 33f4301..9298110 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index 078ebae..029576e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50863
-// { dg-options -std=gnu++0x }
+// { dg-do compile { target c++11 } }
 
 struct T {
   template<typename F>
index daaa339..3c25f0e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54947
-// { dg-options -std=gnu++11 }
+// { dg-do compile { target c++11 } }
 
 struct X
 {
index e07e892..a952526 100644 (file)
@@ -1,5 +1,5 @@
 // Test that we don't crash on a failed lookup.
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 int main()
 {
index 5c9b483..220817a 100644 (file)
@@ -1,6 +1,7 @@
 // Test lambda mangling
 // { dg-require-weak "" }
-// { dg-options "-std=c++0x -fno-inline" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-inline" }
 
 template<typename F> int algo(F fn) { return fn(); }
 inline void g(int n) {
index 4b7d15a..54309a9 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/49276
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template <int N>
 struct F
index 06913a1..5f17a21 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51818
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_ZN1AC1IN3foo3barMUlvE_EEET_" } }
 
 struct A
index ed0565f..d3f4341 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 #include <cassert>
 
 int main() {
index 73a4d1b..2c6b0f2 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 #include <cassert>
 
 int main() {
index df2b037..a09af89 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/56710
-// { dg-options "-std=c++11 -Wall" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wall" }
 
 int main()
 {
index feb0cde..c8ea46a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index b788748..9e50951 100644 (file)
@@ -1,5 +1,5 @@
 // Testcase from N2998
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 void f1(int i) {
   int const N = 20;
index 2cc6f96..f7894fb 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/41896
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 void nested_lambda()
 {
index a5bd1a2..140ed30 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47687
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template <class T> struct A { };
 
index b6489de..b5a335e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index 74149b2..4a04cfb 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 #include <cassert>
 
 int main() {
index cde0c2e..4729bb3 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 auto f = [](int i) { return i+1; };
 
index 9dd6448..d904ebe 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 #include <algorithm>
index ef041c2..40b539a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50089
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 struct TestBase
 {
index 1a12eab..cbaeb16 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 //#include <iostream>
 #include <functional>
index 40376f4..6b86369 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index a5ee7b4..def13fd 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index 15f1d90..49705f5 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/49598
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 int
 main()
index f4433fa..fcfc39e 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/55357
-// { dg-options "-std=c++11 -Wshadow" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wshadow" }
 
 int main() {
   int x = 1;                     // { dg-message "shadowed" }
index 8237a81..6c042ca 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -Wshadow" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wshadow" }
 
 struct A
 {
index 26c09fd..a410384 100644 (file)
@@ -1,6 +1,5 @@
 // Test using std::function wrapper.
-// { dg-do run }
-// { dg-options -std=c++0x }
+// { dg-do run { target c++11 } }
 
 #include <functional>
 
index c306771..1cac211 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49867
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 int
 main ()
index b3b749c..cb3ca94 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/46124
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 void foo() { [] () -> void (); } // { dg-error "returning a function" "returning" }
 // { dg-error "expected .\{" "expected" { target *-*-* } 4 }
index b4db3b8..66cc7a4 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 extern "C" void abort();
 
index 4a80462..4fcc965 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/50276
-// { dg-options "-std=c++11 -Wuninitialized" }
-// { dg-do run }
+// { dg-options "-Wuninitialized" }
+// { dg-do run { target c++11 } }
 
 template<typename T>
 unsigned testfun(const T& func)
index 12ffde7..29f63af 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47049
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 enum { E = 0, F = 1 };
 template <int N, int M = ((N == 1) ? F : E)> class S {};
index fd6f1d3..dea9e0e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49554
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template<typename T>
   struct base
index ed27476..b32f8d7 100644 (file)
@@ -1,5 +1,5 @@
 // Test that implicit 'this' capture works, but that it's still an rvalue.
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 04fe474..5029a4a 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/43856
 // Test for implicit 'this' capture via rewriting.
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct S1 {
   int operator()(int);
index de0d357..2defa99 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45520
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 struct M {
   int i;
index 29cd2a9..f14a272 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48523
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template<typename>
 struct X
index acf4eaa..8c35126 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/53137
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename STORE>
 void getParent(STORE& tStore)
index 6e25c33..ee20203 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/54122
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum E { F };
 
index 3b2a2a7..a0c17ad 100644 (file)
@@ -11,7 +11,7 @@
 // So, other appearances of 'x' within decltype do not refer to the closure
 // member, because they are not "use"s in the sense of 3.2.
 
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template<class T, class U>
 struct same_type;
index 33ba7b0..898f685 100644 (file)
@@ -1,5 +1,5 @@
 // 5.1.2/2: A lambda-expression shall not appear in an unevaluated operand.
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct A { };
index b1d6c30..73677c0 100644 (file)
@@ -1,10 +1,10 @@
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 int main(int argc, char** argv)
 {
   int i;
   int &ir = i;
-  const int ci = 0;
+  const int ci = 1;
   const int &cir = ci;
 
   [] { sizeof (argc); sizeof (i); sizeof (ir); sizeof (ci); sizeof (cir); };
index 695a0b4..96af09c 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/50224
-// { dg-options "-std=c++0x -Wunused-parameter" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wunused-parameter" }
 
 struct T;
 
index f17b336..e85f2bc 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49672
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 template<typename ... Args>
 static void foo()
index b384d5c..f86c4b6 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/41920
-// { dg-options "-std=c++0x -Wall -Wextra" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wall -Wextra" }
 
 int foo(int i)
 {
index ce5e7c4..6542392 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/42370
-// { dg-options "-std=c++0x -Wall" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wall" }
 
 void foo()
 {
index 77f35bc..5c5b24c 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/49482
-// { dg-options "-std=c++0x -Wunused-but-set-parameter" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wunused-but-set-parameter" }
 
 template<class T>
 void f() {
index 2afeccf..059c198 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/52845
-// { dg-options "-std=c++11 -Wall" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wall" }
 
 void f()
 {
index d993294..5285868 100644 (file)
@@ -4,7 +4,7 @@
 //   o the variable or function is not used (3.2 [basic.def.odr]) or is
 //   defined in the same translation unit.
 
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename T> struct B {
   void g(T){}
@@ -16,9 +16,9 @@ template <typename T> struct B {
 
 template <typename T> T B<T>::t2 = { };
 
-enum {} e1;                    // OK, defined
-extern enum {} e2;             // { dg-error "never defined" }
-extern "C" enum {} e3;         // OK, extern "C"
+enum { E1 } e1;                        // OK, defined
+extern enum { E2 } e2;         // { dg-error "never defined" }
+extern "C" enum { E3 } e3;     // OK, extern "C"
 
 void f() {
   struct A { int x; };  // no linkage
index eb6a326..6a602c6 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 void foo()
 {
index f86618a..5b9b17e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 
 #include <utility>
 
index e97f4f6..7bd2093 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "--std=c++11" }
-// { dg-do link }
+// { dg-do link { target c++11 } }
 
 template<typename _Tp>
 inline _Tp&&
index f710f1e..850179c 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test: Named rvalue references are treated as lvalues.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 4526cd3..9f42535 100644 (file)
@@ -1,5 +1,6 @@
 // Test for noexcept-expression
-// { dg-options "-std=c++11 -O2" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-O2" }
 
 #include <typeinfo>
 
index 7883176..5d5867a 100644 (file)
@@ -1,5 +1,5 @@
 // Test for noexcept-specification
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert(X, #X)
 
index b45cf36..2d37867 100644 (file)
@@ -1,6 +1,7 @@
 // Runtime test for noexcept-specification.
-// { dg-options "-std=c++11 -Wnoexcept" }
+// { dg-options "-Wnoexcept" }
 // { dg-do run { target nonpic } }
+// { dg-require-effective-target c++11 }
 
 #include <exception>
 #include <cstdlib>
index 6d31e5b..56ea1f4 100644 (file)
@@ -3,8 +3,7 @@
 // the compiler doesn't get clever about optimizing the calls based on
 // knowledge about the called functions.
 
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <exception>
 #include <cstdlib>
index 8c74712..a6c425d 100644 (file)
@@ -8,7 +8,7 @@
 // { dg-final { scan-assembler-not "EHB" } }
 // { dg-final { scan-assembler "LSDA" } }
 
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A { ~A(); };
 void g();
index 5168dc6..7e1db66 100644 (file)
@@ -1,7 +1,6 @@
 // Test that checking of a nothrow specification uses the one on the
 // definition.
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <exception>
 #include <cstdlib>
index f6df39f..90c50a9 100644 (file)
@@ -1,7 +1,6 @@
 // Test that checking of a nothrow specification uses the one on the
 // definition.
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #include <exception>
 #include <cstdlib>
index bceebb7..96af0fe 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "overriding" }
 
 struct A
index b50ef99..d26a3ae 100644 (file)
@@ -1,5 +1,6 @@
 // Test that -Wnoexcept works with templates
-// { dg-options "-std=c++11 -Wnoexcept" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wnoexcept" }
 
 template <class T>
 T f (T t) { return t; }                // { dg-warning "does not throw" }
index 1e86ac2..b802282 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49082
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace std { template <class T> T&& declval() noexcept; }
 
index 879a63e..6597f40 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49107
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename _Tp>
 _Tp declval() noexcept;
index 592504b..185364b 100644 (file)
@@ -1,5 +1,5 @@
 // Test that we handle merging with deferred noexcept.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class U>
 struct O
index 7e76200..e52e9a0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49107
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace std
 {
index e6afca2..913f2ef 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/50309
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 void foo () noexcept () { } // { dg-error "expected" }
index efbd2ba..909ee97 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50391
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <type_traits>
 
index 82cd844..b27acef 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50043
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct True1 {};
 struct True2 { ~True2(); };
index 953fb0e..e851b86 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/54207
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 typedef bool B;
 constexpr B foo () { return true; }
index 12ff86e..d303a8c 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/55652
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename T>
 struct A
index b867602..ec4f3a1 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56071
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class B
 {
index a7e6cd8..d38028c 100644 (file)
@@ -2,8 +2,7 @@
 // Test that this doesn't lead to link-time collisions.
 
 // { dg-additional-sources "nolinkage1a.cc" }
-// { dg-do link }
-// { dg-options -std=c++11 }
+// { dg-do link { target c++11 } }
 
 #include "nolinkage1.h"
 
index 7b3c4ad..22054ea 100644 (file)
@@ -4,7 +4,7 @@
 //   That is, their presence should cause compiler declared
 //   copy ctor or assignment to be deleted.
 
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <assert.h>
 
index 1051288..b5b8dab 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50707
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 int g;
 
index 4398739..e1b9d69 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #define SA(X) static_assert(X,#X)
 
index e4b963c..96ed2c8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 3aae12c..90f9102 100644 (file)
@@ -1,5 +1,5 @@
 // Do NSDMI get deferred instantiation?
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct A
index 9d39f29..60ca88d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index ada5104..a83d40b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51666 (DR 325)
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U>
 struct tuple
index 301eb61..edcf588 100644 (file)
@@ -1,6 +1,6 @@
 // Core issue 1351
 // { dg-do run { xfail *-*-* } }
-// { dg-options -std=c++11 }
+// { dg-require-effective-target c++11 }
 
 bool fail;
 struct A
index 68af735..e54be05 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50563
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S1 {
   int a{10}, b{20};     // OK
index 0d71417..d366986 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50930
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct nmc {
  nmc() = default;
index aa77680..7316dc6 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options -std=c++11 }
+// { dg-do run { target c++11 } }
 
 struct base
 {
index 952949c..fcb405c 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/50614
-// { dg-options "-std=c++11 -fcompare-debug" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fcompare-debug" }
 
 struct A
 {
index edf54bb..aeafe1c 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/51611
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index a840700..976b8f4 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options -std=c++11 }
+// { dg-do run { target c++11 } }
 
 struct A
 {
index 5be3366..31a638f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 3024e73..a8e8cdf 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 08579ee..6f97b06 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options -std=c++11 }
+// { dg-do run { target c++11 } }
 
 int c;
 
index 9b33346..bade28f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct X
 {
index bb455e7..e78f500 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51477
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index ea19577..4b08474 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/53594
-// { dg-do compile }
-// { dg-options "-std=c++11 -Wuninitialized" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wuninitialized" }
 
 struct A
 {
index 27643e6..90917d7 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test assignment to pointer
 
index 7c33074..50b3d07 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test assignment to nullptr_t
 
index aaf199c..cc3c031 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test assignment to int
 
index 999f054..372ac51 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test cast to int
 
index e6e6a1b..65121b6 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test assignment to method pointer
 
index 9b7b4dc..e933c35 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test compare to pointer
 
index b2c27e8..b2ef515 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test compare to int
 
index d09e070..dbf1632 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test conversion to bool
 
index df6f501..1422a35 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test compare to literal 0
 
index 4924dba..e27d658 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test arithmetic operations
 
index 91e8e71..f81f0c3 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test relational operators
 
index 0c13151..4397082 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test sizeof
 
index c51c81e..e788c16 100644 (file)
@@ -1,16 +1,12 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 // Test typeid
 
 #include <typeinfo>
 
-#define assert_true(b) do { char c[2 * bool(b) - 1]; } while(0)
-
-void fun()
+int main()
 {
-  typeid(nullptr);
   const decltype(nullptr) mynull = 0;
-  typeid(mynull);
-  assert_true(typeid(nullptr) == typeid(mynull));
+  if (typeid(nullptr) != typeid(mynull))
+    __builtin_abort();
 }
index 1e9e517..6a79c49 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test overload preference char*/int
 
index 1f91bae..939d449 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+
 
 // Test template deduction
 
index 9456523..62029b3 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test template deduction
 
index 7288414..96fea44 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test that bool is a better overload match than int
 
index 6566288..17dd62c 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test overload of pointer versus bool when applied on a nullptr_t
 
index 92e7f9a..8b6a0b4 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+
 
 // Test overload of pointer versus nullptr_t when applied on a literal 0/__null
 
index 6c07ece..bbd0c7e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 // Test passing to ellipisis
 
index 0355b82..89884b9 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 // Test throw and catch
 
index 08c3b0a..5fbd124 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -Wall -Wformat=2 -Wstrict-null-sentinel" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wall -Wformat=2 -Wstrict-null-sentinel" }
 
 // Test various warnings
 
index 077cd36..2fab690 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50361
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
@@ -7,7 +7,7 @@ struct Foo
 {
   Foo(std::initializer_list<Foo>) { };
 
-  template<class T> Foo(T t) { T u(t); };
+  template<class T> Foo(T t) { T u(t); }
 
 private:
   union Data
index e7833d1..de0c842 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50371
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<decltype(nullptr)>
 struct nt;
index bdc2ed3..a87a923 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<decltype(nullptr)>
 struct nt{};
index 457e3ae..f60fae0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51530
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T, class U>
 void f(T, U);
index 1b86868..2510dc8 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/52706
-// { dg-options "-std=c++11 -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 // { dg-final { scan-assembler "_Z1fIDnLDn0EEiT_" } }
 
 template<class T, decltype(nullptr) = nullptr>
index a8e35a9..d2325bb 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/53882
-// { dg-options "-std=gnu++11 -O" }
+// { dg-options "-O" }
+// { dg-do compile { target c++11 } }
 
 void f(decltype(nullptr) &__restrict np) { }
index 2661060..5817ad5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "--std=c++11" }
-// { dg-do link }
+// { dg-do link { target c++11 } }
 
 struct S {};
 
index a3fdd3a..b95994d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "--std=c++11" }
-// { dg-do link }
+// { dg-do link { target c++11 } }
 
 struct T {};
 struct S
index b10bb43..a52e7c0 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "--std=c++11" }
-// { dg-do link }
+// { dg-do link { target c++11 } }
 // Generated by overload.py
 
 template<typename _Tp>
index e532fa2..2779f6d 100644 (file)
@@ -1,5 +1,5 @@
 // Core 1321
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // Two dependent names are equivalent even if the overload sets found by
 // phase 1 lookup are different.  Merging them keeps the earlier set.
 
index e521b35..2d95783 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/59823
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct X { };
 
index 00f9fde..16c39a9 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "--std=c++11" }
-// { dg-do link }
+// { dg-do link { target c++11 } }
+// { dg-options "" }
 // Generated by overload.py
 
 template<typename _Tp>
index 5b48710..e05693f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 struct B
 {
   virtual void f() final {}
index e5a9aa6..c0b89de 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
 struct B1 {};
 
 struct B2 final {};
index 695f9a3..7120984 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "expected ';'" }
 // { dg-prune-output "expected unqualified-id" }
 // { dg-prune-output "declaration does not declare anything" }
index 0a86caf..5a11b73 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43509
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 typedef int B;                 // { dg-message "" }
 B::B() {}                      // { dg-error "" }
index 95901e5..6d8f565 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename, typename..., typename> void foo(); // { dg-message "note" }
 
 void bar()
index 1e7507c..428673d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename..., typename> void foo(); // { dg-message "note" }
 
 void bar()
index f4de197..1f2ea50 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename..., typename> struct A // { dg-error "parameter pack" }
 {
  static int i;
index 3bce578..e70bdd1 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> int foo(const T&) // { dg-error "not expanded with|T" }
 {
  union { T t; }; // { dg-error "not expanded with|T" }
index b7a7bbf..5f7010f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template <typename... T> struct A // { dg-message "candidates|A" }
 {
   A(T* p) {  // { dg-error "parameter packs|T" }
index 26c34b0..272f402 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename> struct A;
 template<typename T, typename... U> struct A<T(U)> // { dg-error "parameter packs|U" }
index 1322195..f753735 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct A;
 
 template<char> struct A<> {}; // { dg-error "not used in partial specialization|anonymous|declaration" }
index bed4b57..7fd20e7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T, T = 0> struct A {}; // { dg-error "parameter packs|T|the end|parameter packs|anonymous" }
 
 struct B
index 0decd75..3169312 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<int, typename... T> struct A
 {
index 316ddb6..955562d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> struct A
 {
   template<int> void foo(A<T>); // { dg-error "not expanded|T" }
@@ -7,4 +7,4 @@ template<typename... T> struct A
 void bar()
 {
   A<int>().foo<0>(A<int>()); // { dg-error "no member named" }
-};
+}
index 283eafb..89aae9a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template <typename... T> struct A
 {
   void foo(T...);
index 39a7349..9c3411c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename...> struct A;
 
index 9231871..0ae684c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename ...T> struct A
 {
   typedef typename T::X Y; // { dg-error "not expanded|T" }
index 4e5700c..5722aa3 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename ...T, int = 0> struct A {}; // { dg-error "end of" }
 
 A<int> a; // { dg-error "mismatch|expected|invalid" }
index 7b91360..01844bd 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct A;
 
 template<typename...T> struct A<T*> // { dg-error "not expanded|T" }
index c1cca94..dac1da5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct A;
 
 template<typename...T> struct A<T> // { dg-error "not expanded|T|" }
index ca197ec..586469d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...T> struct A
 {
   static T i; // { dg-error "parameter packs|T" }
index 595e20e..147001e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct A;
 
 template<typename...T, typename...U> 
index f0f4b3c..715ad27 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 int x[5];
 
 template<int M, int N, int (&... p)[N]> struct A;
index df30b6a..2094b2d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<void (*... fp)()> struct A
 {
   A() { fp(); } // { dg-error "not expanded|fp" }
index 5802078..fd07432 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<int...> struct A;
 
 template<template<int> class... T> struct A<T...> {}; // { dg-error "mismatch|expected" }
index b4d3a62..50bcfe8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 template<int> struct A;
 
 void foo()
index 814fb65..8d9312c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 typedef const int* type;
 
 float& foo( const type& ggg );
index 191fe5c..7d3f6b6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename T>
 struct uncvref
 {
index 47829c0..3fca7f2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #define BUG
 struct type
index 19fcece..8043f96 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/34054
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename... T> T foo() {} // { dg-error "not expanded|T" }
index f227ce1..9c5261d 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/34056
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename... T> struct A
 {
index 1c28c54..d74018e 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/34057
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename... T> struct A
 {
index 74dabc5..dc9e836 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/34058
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename...T> struct A
 {
index 6653eb6..f485346 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/34060
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <int> struct A
 {
index bb750f1..64f0ded 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/34061
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<template<int> class ...T> struct A : T<0> {}; // { dg-error "not expanded|T" }
index 2177aab..7dd53ae 100644 (file)
@@ -1,6 +1,5 @@
 /* PR c++/38646 */
-/* { dg-do compile } */
-/* { dg-options "-std=c++11" } */
+/* { dg-do compile { target c++11 } } */
 
 template<int...> struct A;
 
index bf44357..89ce0d3 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/38795
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename... T> int foo(int i)
 {
index 873c51e..5618e80 100644 (file)
@@ -1,7 +1,6 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/39639
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "template argument 1 is invalid" }
 
 template <class... Types>
index c7a02c2..ff23966 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/42844
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A // { dg-message "user-provided default constructor" }
 {
index b50b7b0..dad8dfd 100644 (file)
@@ -1,8 +1,7 @@
 // PR c++/45908
 // Testcase by Jonathan Wakely <redi@gcc.gnu.org>
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct vector {
     struct iterator { };
index d7c5b13..e4eb317 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/47416
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 namespace std
 {
@@ -214,7 +213,7 @@ namespace boost
     {
     }
   };
-};
+}
 
 void
 foo (const int &a)
index dd386d1..bf9a065 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/47476
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 int
 foo (int a, int b)
index 4f1117b..560e70b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename T>
 struct Handle
index 7232463..1f7d8d5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 #include <utility>
 
index c617716..d203a33 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct GrandParent {
   void *get();
index 091952f..de82435 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T> int foo(int a)
 {
index 8fe2b6f..af1d1cf 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51150
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct Clock {
   double Now();
index 0433c84..356b628 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/51216
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 void foo()
 {
index a9f1cf0..f80bd0e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51225
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> struct A {};
 
index 2033296..eb304ba 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51313
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class ostream;
 
index aec8cb1..7aa80e5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void
 foo()
index 1e8be3b..6a57e47 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/51463
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 5fae55a..578a799 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51547
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct vector
index 75a9220..9a73188 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/51619
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct A { virtual ~A(); };
 struct B { A a[1][1]; } b;
index a5c4a3c..94b576f 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -fcompare-debug" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fcompare-debug" }
 
 typedef long unsigned size_t;
 namespace
index 5ee1f0e..33f4637 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 -Wall -Wextra" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wall -Wextra" }
 
 template<class T>
 void f(T t, void* = 0)  // { dg-warning "unused parameter" }
index 941d7c7..6d48a55 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // PR c++/58072
 
index 14b45b1..4e48854 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/59111
 // { dg-do compile { target c++11 } }
 
-auto& foo();   // { dg-error "type specifier without trailing return type" }
-int i = foo(); // { dg-error "cannot convert" }
+auto& foo();   // { dg-error "type specifier without trailing return type" "" { target { ! c++1y } } }
+int i = foo(); // { dg-error "" }
index 12e8f92..36af96a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 typedef int T __attribute__((vector_size(2*sizeof(int))));
 
 void foo(T& r, const T& a, const T& b)
index b6c81d5..ed12655 100644 (file)
@@ -1,5 +1,5 @@
 // Origin PR c++/51476
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int> struct A {};                                                               
 struct B
index b0e7115..4fecdc7 100644 (file)
@@ -1,8 +1,7 @@
 // Test for range-based for loop
 // Test the loop with an array
 
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 extern "C" void abort();
 
index e93f76e..1397830 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/47388
-// { dg-do compile }
-// { dg-options "-fno-for-scope -std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-for-scope" }
 
 template <int>
 void
index 84f8558..d7dde91 100644 (file)
@@ -2,8 +2,7 @@
 // Test the loop with a custom iterator
 // with begin/end as member functions
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct iterator
 {
index 4b85366..5a2a7d1 100644 (file)
@@ -1,8 +1,7 @@
 // Test for range-based for loop with templates
 // and begin/end as member functions
 
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 /* Preliminary declarations */
 namespace pre
index 2b8d7f7..ab7bdde 100644 (file)
@@ -1,8 +1,7 @@
 // Test for errors in range-based for loops
 // with member begin/end
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //These should not be used
 template<typename T> int *begin(T &t)
index 651ce37..f43e1ab 100644 (file)
@@ -1,8 +1,7 @@
 // Test for other range-based for loops with
 // begin/end member functions
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //These should not be used
 template<typename T> int *begin(T &t)
index bbdc199..5dd442d 100644 (file)
@@ -1,8 +1,7 @@
 // Test for range-based for loop with templates
 // and begin/end as member (non-)virtual functions
 
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 unsigned int g;
 
index 76c1b91..bcc09cb 100644 (file)
@@ -1,8 +1,7 @@
 // Test for range-based for loop with arrays of
 // incomplete type or unknown size
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 extern int a[10];
 extern int b[];
index 72516f1..6cc3f9b 100644 (file)
@@ -1,11 +1,11 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 extern "C" int printf (const char *, ...);
 
 enum E { e1, e2, e3, X };
 E operator*(E e) { return e; }
 E begin(E e) { return e; }
-E end(E e) { return X; };
+E end(E e) { return X; }
 E operator++(E& e) { return e = E(e+1); }
 
 int main()
index f06311c..be43638 100644 (file)
@@ -1,7 +1,6 @@
 // PR c++/48994
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename T>
 struct myvec
index ee208d7..e3f446f 100644 (file)
@@ -1,7 +1,6 @@
 // PR c++/49838
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 int main()
 {
index 325525c..ea845ee 100644 (file)
@@ -2,8 +2,7 @@
 // Test the loop with a custom iterator
 // with begin/end in an associated namespace
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct iterator
 {
index 3d979d2..eb3cfe7 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/49834
 // PR c++/50020
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index bf0b02b..4990b48 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49983
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 void f(T t)
index 9db46ee..d4bb360 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<int I> void f() {
   for (auto i: {I} );
index 2f1ce38..cc6deaf 100644 (file)
@@ -2,8 +2,7 @@
 // Test the loop with a custom iterator
 // with begin/end in std
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct iterator
 {
index b27ec6f..8a3117b 100644 (file)
@@ -1,7 +1,6 @@
 // Test for range-based for loop with templates
 
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 /* Preliminary declarations */
 namespace pre
index e74e33a..bf04406 100644 (file)
@@ -1,7 +1,6 @@
 // Test for errors in range-based for loops
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct container
 {
index 5fe405f..366499a 100644 (file)
@@ -1,8 +1,7 @@
 // Test for range-based for loop
 // Test the loop with an initializer_list
 
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <initializer_list>
 
index 253d6b0..3e88362 100644 (file)
@@ -1,8 +1,7 @@
 // PR c++/46056
 // Check that range-based for loop calls destructors 
 // when required
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 extern "C" void abort();
 
 int value_counter = 0, it_counter = 0, seq_counter = 0;
index 7ef214e..a389f66 100644 (file)
@@ -1,8 +1,7 @@
 // Test for range-based for loop when the declarator declares
 // a new type
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 669689d..3de8f96 100644 (file)
@@ -3,8 +3,7 @@
 // Test the reference collapsing rules.  Note that there are recent differences
 //    for how cv-qualifications are applied to reference types. 7.1.3, 14.3.1
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/README b/gcc/testsuite/g++.dg/cpp0x/regress/README
deleted file mode 100644 (file)
index 5c3402e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-This directory contains tests that were passing in C++98 mode but failing
-in C++0x mode; it should be replaced by an improvement to the test harness
-to run all tests in both modes.
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/abi-empty7.C b/gcc/testsuite/g++.dg/cpp0x/regress/abi-empty7.C
deleted file mode 100644 (file)
index adc7127..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copy of abi/empty7.C.
-// { dg-do run { target i?86-*-* x86_64-*-* } }
-// { dg-require-effective-target ilp32 }
-// { dg-options "-fabi-version=0 -std=c++0x" }
-
-struct S1 {};
-struct S2 { virtual void f () {} S1 s1[4]; };
-struct S3 : virtual public S2 {};
-struct S4 : virtual public S2 { int i; };
-struct S5 : public S3, virtual public S4 {};
-struct S6 { S5 s5; };
-struct S7 { S1 s1[5]; };
-struct S8 : public S1, public S6, virtual public S7 { };
-
-S8 s8;
-
-int main () {
-  if ((char *)(S7 *)&s8 - (char *)&s8 != 24)
-    return 1;
-}
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/debug-debug7.C b/gcc/testsuite/g++.dg/cpp0x/regress/debug-debug7.C
deleted file mode 100644 (file)
index d3f14f4..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// { dg-do compile }
-// { dg-options -std=c++0x }
-
-void f (int);
-
-int
-main() {
-
-  int a = 4;
-  int b = 5;
-  int (*x)[b] = new int[a][b]; // { dg-error "array size.*must be constant|usable in a constant" }
-
-  x[2][1] = 7;
-
-  for (int i = 0; i < a; ++i)
-    for (int j = 0; j < b; ++j)
-      f (x[i][j]);
-  delete [] x;
-}
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/error-recovery1.C b/gcc/testsuite/g++.dg/cpp0x/regress/error-recovery1.C
deleted file mode 100644 (file)
index cdf9940..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// PR c++/48212
-// { dg-options -std=c++0x }
-
-template < bool > void
-foo ()
-{
-  const bool b =;              // { dg-error "" }
-  foo < b > ();                        // { dg-error "constant expression" "const expr" }
-};
-
-// { dg-error "no match" "no match" { target *-*-* } 8 }
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/ext-cond1.C b/gcc/testsuite/g++.dg/cpp0x/regress/ext-cond1.C
deleted file mode 100644 (file)
index dc9814e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-// PR c++/12515
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-template<int> void foo() { 0 ?: 0; }
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/ext-label10.C b/gcc/testsuite/g++.dg/cpp0x/regress/ext-label10.C
deleted file mode 100644 (file)
index 652d94a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// PR c++/33836
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-
-template<int N> struct A
-{
-  enum { M = && N };   // { dg-error "referenced outside|cannot appear in|not an integer constant" }
-};
-
-A<0> a;
-
-void foo ()
-{
-  __label__ P;
-  enum { O = && P };   // { dg-error "cannot appear in|not an integer constant" }
-  P:;
-}
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/parse-ambig5.C b/gcc/testsuite/g++.dg/cpp0x/regress/parse-ambig5.C
deleted file mode 100644 (file)
index 9be2f92..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// PR c++/41786
-// { dg-options -std=c++0x }
-
-struct A { A(int, char const*); };
-int main() {
-  int i = 0, *b = &i;
-  A a(int(b[i]), "hello");
-}
diff --git a/gcc/testsuite/g++.dg/cpp0x/regress/template-function1.C b/gcc/testsuite/g++.dg/cpp0x/regress/template-function1.C
deleted file mode 100644 (file)
index e7094d2..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// PR c++/38647
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
-// { dg-prune-output "note" }
-
-template<const char *, int> struct A {};
-const char func[] = "abc";
-template<int N> struct A<func, N> {};  // { dg-error "cannot appear|is invalid|not a valid|constant expression" }
-
-char a1[1];
-A<a1, 0> a;
-
-template<const char *, int> struct B {};
-template<int N> struct B<__FUNCTION__, N> {};  // { dg-error "cannot appear|is invalid|is not a valid|constant expression" }
-
-char b1[1];
-B<b1, 0> b;
-
-template<const char *, int> struct C {};
-template<int N> struct C<__PRETTY_FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid|is not a valid|constant expression" }
-
-char c1[1];
-C<c1, 0> c;
-
-template<const char *, int> struct D {};
-template<int N> struct D<__func__, N> {};      // { dg-error "(cannot appear|is invalid|is not a valid|function scope|constant expression)" }
-                                               // { dg-warning "function scope" "function scope" { target *-*-* } 26 }
-
-char d1[1];
-D<d1, 0> d;
index e4db7a2..ce93a16 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 1f0d12e..9ca17f2 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51868
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
   A() {}
index d7bafc4..4b46c54 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 void f(int i)
 {
index 4d2ed52..6dc5abc 100644 (file)
@@ -1,5 +1,5 @@
 // Test for const_cast to reference (5.2.11/4).
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> T&& xval();
 template <class T> T& lval();
index ba2b6bb..3482766 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49267
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct X {
   operator int&();
index 7763c42..ce06d13 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/36816, core issue 873
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> void h (T&&) { }
 
index 26a8d55..ecaaf38 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48313
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename F>
 void f(F&&) { }
index 104ecbd..7834be5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49389
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T> T&& val();
 
index 3ac7118..e97fe3d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48457, Core 1238
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T&& create();
index 51516bf..cfa0b21 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49458
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 typedef void ftype();
 
index f331401..6738303 100644 (file)
@@ -1,5 +1,5 @@
 // DR 1328
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> struct A {
   operator T&();  // #1
index fd5aa65..1ca3c41 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> T&& declval();
 
index 02061fc..b55b67a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 void f(int &);
 void f(int &&ir) { ir = 42; }
index 23c7bbe..11bf4de 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45401
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 typedef int &__restrict restrictLvref;
 typedef restrictLvref &&rvrefToRestrictLvref;
index 088f376..12a15aa 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/41815
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> struct same_type;
 template<typename T> struct same_type<T, T> {};
index d73108c..dcc4e5e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44870
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 void foo(int&& data);
 
index 217116a..b729dc8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/33235
 #include <cassert>
 
index 3c6566b..bba72d2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 9ee46dc..9aa534a 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index f2f4c0b..e4c0ab1 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index c39d5c0..289cffb 100644 (file)
@@ -2,8 +2,8 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 209f893..fb3019f 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 67cbde2..765dfbc 100644 (file)
@@ -2,8 +2,8 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 12db70c..6d4625a 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 9ed324e..dc56afe 100644 (file)
@@ -2,8 +2,8 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 8ec2571..8d720c7 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 667012f..ca179cd 100644 (file)
@@ -2,8 +2,8 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 171b6dc..7030277 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 89ed1c0..d00c1e2 100644 (file)
@@ -2,8 +2,8 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 92a4f94..4be8343 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 4d81e2a..7e7a664 100644 (file)
@@ -2,8 +2,8 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 551b9d9..55fc5d7 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 650fd76..4424793 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test overload resolution among reference types
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
 
 template <bool> struct sa;
index 4714d7c..a221f32 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/36744
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 struct S
 {
index 0ba8b10..fc83b1b 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // Contributed by Sylvain Pion
 static int rvalue_constructions = 0;
 
index a1f9948..0ca3a1f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 enum class Color1 {
   Red, 
   Green,
index bf9e657..bb8ad75 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 enum class E { e = 10 };
 enum E2 { e2 = 10 };
index aea744d..8dc2fa6 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 enum class Col { red, yellow, green };
                                 
 int x = Col::red; // { dg-error "cannot convert" }
index 855d967..0e015d9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template< typename T_VECTOR >
 void f(const T_VECTOR &a, decltype(a[0]) t = 0);
index c62aba7..25ef77d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48452
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 namespace std {
   template <class T> T&& declval();
 }
index e5d5255..89bd76d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48468
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "note" }
 
 template<class T>
index 927ac7a..22a9847 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48535
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T,
  class = decltype(T{})
index 511944b..3cff1b4 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48581
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T&& create();
index 23ef844..14e5e05 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48557
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct add_rval_ref
index e283096..d8b3228 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48531
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T,
   class = decltype(T())
index 7bd1aab..56cbdad 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48531
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T,
   class = decltype(T())
@@ -13,5 +13,5 @@ struct B2 {
   B2(...);
 };
 
-#define SA(X) static_assert ((X), #X);
+#define SA(X) static_assert ((X), #X)
 SA(sizeof(f<B2[2]>(0)) != 1);
index 3b91621..c56a5d4 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48530
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T,
         class = decltype(T{})
index bf98f40..ea46df0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48530
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T, 
   class = decltype(T())
index 59c6a71..52cc6ad 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48737
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T&& create();
index 1eec1a1..6f617b2 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44967
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename T> T&& declval();
 
index c0ba70c..882efe7 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48744
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct add_rval_ref {
index 62c003a..743d7cf 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48735
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T, 
  class = decltype(T{})
index 8379d04..2c55b8a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48745
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct add_rval_ref {
index 794b336..53d5c9b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48647
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template< class T >
 T&& declval();
index d6746e0..6d275d3 100644 (file)
@@ -1,7 +1,7 @@
 // PR c++/49058
 // This error is not subject to SFINAE because it doesn't happen in the
 // deduction context.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "note" }
 
 template<typename T> T val();
index d8c46d0..0ff872c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49105
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T, class = decltype(T{})>
 char f(int);
index 3fc5b28..f55e1d8 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49229
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 extern void* enabler;
 
index 2fa2232..ddd484a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50157
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T val();
index a06fc9f..1eeba64 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50324
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct complete { };
 struct incomplete;
index 49ab969..8792778 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51047
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T> T &&declval();
 template<class T> decltype(declval<T>().x) f(T *);
index b25b388..5009c84 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace std { template <class T> T&& declval(); }
 
index 066b1de..8695ebc 100644 (file)
@@ -1,8 +1,8 @@
 // PR c++/51973
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
-void f(T t) { };
+void f(T t) { }
 
 template <class T> decltype(f<T>(0)) g();
 template <class T> decltype(f<T*>(0)) g();
index 67237ff..97945c6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51989
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename T>
 struct is_container
index 3a5e6f7..f543c1f 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/52422
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct add_rval_ref
index d5d1ca4..615a2bc 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/52422
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct add_rval_ref
index 21df10c..86b6103 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/52363
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <type_traits>
 
index 79509a1..6597bc3 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/52363
-// { dg-options "-std=c++11 -pedantic" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-pedantic" }
 
 #include <type_traits>
 
index a409bf8..1b24966 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace std { template <class T> T&& declval(); }
 
index 22efe65..14c31f6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56208
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct ostream {
   ostream& operator<<(int);
index e3592d0..421a06e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T&& create();
index 1b88433..4ee0146 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48113
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T> T declval();
 
index 19ec2ad..18b3d8f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index a5464de..43381d0 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48449
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T, class = decltype(T())>
 char f(int);
index 98ac52c..68656c6 100644 (file)
@@ -1,9 +1,9 @@
 // PR c++/48450
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace std {
   template <class T> T&& declval();
-};
+}
 
 template<class To, class From,
   class = decltype(static_cast<To>(std::declval<From>()))
index 81a8661..49b5a97 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 void foo()
 {
   static_assert(1, "okay");
index ac7dfdc..1ef2bc6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<int I>
 struct accept_evens {
   static_assert( I % 2 == 0, "I must be an even number"); // { dg-error "even number" }
index 84d2e2a..ff71300 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 static_assert(7 / 0, "X"); // { dg-error "non-constant condition" "non-constant" }
 // { dg-warning "division by zero" "zero" { target *-*-* } 2 }
 // { dg-error "7 / 0.. is not a constant expression" "not a constant" { target *-*-* } 2 }
index 97c0bd6..9a74735 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++11 --param ggc-min-heapsize=0 --param ggc-min-expand=0 " }
+// { dg-do compile { target c++11 } }
+// { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0 " }
 // PR C++/30033
 // Make sure that the static assert does not crash the GC.
 
index fdf26d1..36cf2eb 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50837
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct z
index 6fd9c27..5323e71 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/51397
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 static_assert('X' != '\130', "'X' has the wrong value"); // { dg-error "'X' has the wrong value" }
index 28793e4..f571de2 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/53166
-// { dg-options "-std=c++11 -Waddress" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Waddress" }
 
 template <typename X, X a>
 struct A
index bff657c..09273c5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // [basic.types]/10:
 // Scalar types, standard-layout class types (Clause 9), arrays of such
 #define TRY(expr) static_assert (expr, #expr)
 #define YES(type) TRY(std::is_standard_layout<type>::value); \
   TRY(std::is_standard_layout<type[]>::value); \
-  TRY(std::is_standard_layout<const volatile type>::value);
+  TRY(std::is_standard_layout<const volatile type>::value)
 #define NO(type) TRY(!std::is_standard_layout<type>::value); \
   TRY(!std::is_standard_layout<type[]>::value); \
-  TRY(!std::is_standard_layout<const volatile type>::value);
+  TRY(!std::is_standard_layout<const volatile type>::value)
 #define NONPOD(type) TRY(!std::is_pod<type>::value); \
   TRY(!std::is_pod<type[]>::value); \
-  TRY(!std::is_pod<const volatile type>::value);
+  TRY(!std::is_pod<const volatile type>::value)
 
 struct A;
 
index e71cdc5..7caaa7c 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -fext-numeric-literals" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fext-numeric-literals" }
 
 //  Integer imaginary...
 
index 488db42..0b245f4 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+
 
 //  Integer imaginary...
 
index 818eaac..5f5a236 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47198
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct S
 {
index b7bb9b8..9d8a3bd 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "--std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 struct S { };
 
index 97b33ac..616f2f4 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "--std=c++11" }
-// { dg-options "-Wno-abi --std=c++11" { target arm_eabi } }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wno-abi" { target arm_eabi } }
 #include <stdarg.h>
 
 struct S { };
index bf26292..33f6c9e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U>
 struct is_same
index 0d1598c..2a41e22 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <class T, class U = double> 
 void f(T t = 0, U u = 0);      // { dg-message "note" }
index e72e757..2d59f47 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U = typename T::value_type>
 void f(T);
index 6b2f5b1..783ff5b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 class X {
   template<typename T = int> friend void f(X) { }
index 21ad5fb..dd84d26 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <class Z = void, class T>
 void Foo(T)
index 73aa3ee..1186e80 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test the "Augmented" template argument deduction when binding an lvalue to an rvalue reference.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 8b568a2..7d9a906 100644 (file)
@@ -1,5 +1,6 @@
 // Tests for late-specified return type.
-// { dg-options "-std=c++11 -fabi-version=5" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=5" }
 
 auto f() -> int
 {
index 91e5557..888d6f9 100644 (file)
@@ -3,14 +3,14 @@
 // { dg-do compile { target c++11 } }
 
 auto f1 () -> int;
-auto f2 ();            // { dg-error "without trailing return type" }
+auto f2 ();            // { dg-error "without trailing return type" "" { target { ! c++1y } } }
 int f3 () -> int;      // { dg-error "trailing return type" }
 auto *f4 () -> int;    // { dg-error "trailing return type" }
 
 struct A
 {
   auto f5 () const -> int;
-  auto f6 ();          // { dg-error "without trailing return type" }
+  auto f6 ();          // { dg-error "without trailing return type" "" { target { ! c++1y } } }
   int f7 () -> int;    // { dg-error "trailing return type" }
   auto *f8 () -> int;  // { dg-error "trailing return type" }
 };
index d95f298..ced5d5e 100644 (file)
@@ -1,5 +1,6 @@
 // More auto/decltype mangling tests.
-// { dg-options "-std=c++11 -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 template <class T>
 struct B
index f508bc4..0ca96e4 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38597
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T, class U>
 auto f(T,U) -> decltype(T() + U())
index b4f2bf7..48f3145 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/38798, DR 770
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {};
 auto foo() -> struct A {}
index 86b8e44..0238740 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49003
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A {
     auto a() const -> decltype(this) { return this; }
index e322a3c..b3397ea 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50365
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { int i; };
 
index 06ed257..3fed570 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // [basic.types]/10:
 // Scalar types, trivial class types (Clause 9), arrays of such types and
 #define TRY(expr) static_assert (expr, #expr)
 #define YES(type) TRY(std::is_trivial<type>::value); \
   TRY(std::is_trivial<type[]>::value); \
-  TRY(std::is_trivial<const volatile type>::value);
+  TRY(std::is_trivial<const volatile type>::value)
 #define NO(type) TRY(!std::is_trivial<type>::value); \
   TRY(!std::is_trivial<type[]>::value); \
-  TRY(!std::is_trivial<const volatile type>::value);
+  TRY(!std::is_trivial<const volatile type>::value)
 
 struct A;
 
index 92f1924..11389bf 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <cstddef>
 
index 602d829..d8d672e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <cstddef>
 
index 15aa6a3..4680288 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <cstddef>
 
index 1e7190f..b9cb8e0 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/52521
-// { dg-do compile }
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <cstddef>
 
index 675ef31..87e0082 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 extern "C" {
 
index 10ff69b..3093a7c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <string>
 
index 870ddc3..d4f10c2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <string>
 
index e62c34a..4c2f7ed 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 constexpr unsigned long long
 operator"" _grow(unsigned long long n)
index a7eeb46..a68e2e0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //  Check that undeclared literal operator calls and literals give appropriate errors.
 
index 2832312..fef1a53 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 //  Make sure embedded quotes are not a problem for string and char literals.
 
@@ -7,10 +6,10 @@
 #include <cassert>
 
 int operator"" _embedchar(char)
-{ return 41; };
+{ return 41; }
 
 int operator"" _embedstr(const char*, std::size_t len)
-{ return 42 + len; };
+{ return 42 + len; }
 
 void
 test()
index 0319701..54d7b7a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 long double
 operator"" _Hertz(long double);
index b876a07..d69db56 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 // Test user-defined literals.
 // Test simple operator declaration and definition.
index 851cd9b..ea6095d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <cstdint>
 
index 063fd83..fd8b9a0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //  Literal operators can be inline.
 
index f969bb5..3e99807 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 extern "C"_badlinkage {        // { dg-error "expected unqualified-id before" }
 
index c226c26..8840dcd 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/52521
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_Zli2_wPKc" } }
 
 int operator "" _w(const char*);
index e6ea577..2a31452 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class Foo
 {
index a84ed0e..7329890 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 // Test user-defined literals.
 // Test simple operator declaration and definition in namespaces.
index 2de8f77..89c7581 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test user-defined literals.
 // Test error on non-function declaration.
index e8ad123..ddaa1aa 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test user-defined literals.
 // Test error on non-empty string after 'operator' keyword.
index 429a876..d1f3238 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 float operator ""_abc(const char*);
 
index 3c56f21..790726f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 char32_t
 operator"" (char32_t C)        // { dg-error "expected suffix identifier" }
index b238f13..9120ae4 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // Test user-defined literals.
 // Test warning on declaration without leading underscore.
index caaaa49..d71f4a2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //  Can't have *both* literal operator template and raw literal operator.
 
index c90467b..d7e5e4b 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-std=c++11 -Woverflow" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Woverflow" }
 // PR c++/52654
-
 int
 operator"" _w(unsigned long long)
 { return 0; }
index 569c10f..057978c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }\r
+// { dg-do compile { target c++11 } }
 // PR c++/52654\r
 \r
 int\r
index 0638cee..64b6f82 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 int
 operator"" _badpreproc(const char *str)
index d30e9ee..8969c96 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/50958
 
 typedef decltype(sizeof(0)) size_type;
index 36d364c..be68333 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 //  Make sure handing a string to a raw literal generates a sensible error message.
 
 int operator"" _embedraw(const char*)
-{ return 41; };
+{ return 41; }
 
 int k = "Boo!"_embedraw;  //  { dg-error "unable to find string literal operator" }
index dea0734..c3259ed 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 #include <cstring>
index e077889..7ca37b2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <string>
 
index b4544ee..4241d0a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 #include <cstdint>
 #include <cassert>
index 6528407..c635590 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 //  Test that the standard suffixes shadow any user-defined suffixes of the same name.
 long double
index d8be7b7..acfda45 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/50941
 
 typedef decltype(sizeof(0)) size_type;
index f83bef6..734a0f3 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target stdint_types }
 // PR c++/55582
 
index e3b7e96..7283fed 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <string>
 
index 33dfb9e..189e445 100644 (file)
@@ -1,3 +1,3 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include "udlit_system_header"
index 55dca2f..de21b66 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 // Test user-defined literals.
 // Test template operator declaration and definition.
index f2efdd7..678a53e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<char...>
   int operator"" _xyz(unsigned long long);     // { dg-error "has invalid argument list" }
index fb21f28..cec79a5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<char...>
   int operator"" _abc();
index 7293254..f681ecf 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class Foo { };
 
index d83fee8..bc7eaf6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 class Foo { };
 
index f83c89b..ff415fc 100644 (file)
@@ -1,5 +1,5 @@
 // Negative test for C++11 unrestricted unions
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "implicitly deleted because" }
 
 struct A
index 78d88b2..5144094 100644 (file)
@@ -1,5 +1,5 @@
 // Positive test for C++11 unrestricted unions
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index a1212e1..d95d30c 100644 (file)
@@ -1,6 +1,5 @@
 // Runtime test for C++11 unrestricted unions
-// { dg-options -std=c++11 }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 int c, d;
 struct A
index fa3e97f..cf9916d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48537
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct SFoo
 {
index 5178061..8d2bc98 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/49803
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 struct X
 {
index 8afe7a7..c1b94bb 100644 (file)
@@ -2,8 +2,7 @@
 
 // Test: Unamed rvalue references are treated as lvalues.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index e7a032c..50956d2 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45236
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T, class S> class foo;
 
index 21ebb2f..74e01ec 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 // A basic implementation of TR1's bind using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 #include <cassert>
index 768f2ee..211ede6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 #define ONE
 #define TWO
index f6b3196..8b5ee0d 100644 (file)
@@ -1,7 +1,6 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/39637
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<class... Types>
 void
@@ -16,5 +15,3 @@ main()
 {
     f(0);
 }
-
-// { dg-message "note" "Types" { target *-*-* } 10 }
index 0653d2a..33b27a5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49205
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 #include <initializer_list>
 
index 0fd2ab9..b301604 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename ... Elements> class Tuple;
 Tuple<>* t; // OK: Elements is empty
 Tuple* u; // { dg-error "template-name" }
index 4515453..3df356a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Types> struct Tuple { };
 
 Tuple<> t0; // Types contains no arguments
index 4d45d5e..9991fa2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Types> 
   void f(Types... args);
 
index 35a71a9..bc55b2d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Types> 
   void f(Types... rest);
 
index f024f84..fe29e71 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T, typename U> struct is_same {
   static const bool value = false;
index 108d111..600b798 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T> class A { /* ... */ };
 template<class T, class U = T> class B { /* ... */ };
index 0eb029b..015d9d8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<class... Types> struct B { // { dg-error "declaration of" }
   void f3();
   void f4();
index 25d8018..8a723ab 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<class X, class Y, class... Z> X f(Y); // { dg-message "note" }
 void g() 
 { 
index b05ca57..26651f7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<class X, class Y, class Z> X f(Y,Z); // { dg-message "note" }
 template<class... Args> void f2();
 void g() 
index 81b5797..841562f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Types> void f(Types... values);
 
 void g()
index 5bb01d5..185a963 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<class...> struct Tuple { };
 
 template<class... Types> void f(Types&...);
index 69f9467..c1bf837 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct Tuple { };
 template<typename... Types>              char& g(Tuple<Types...>);       // #1
 template<typename T1, typename... Types> short& g(Tuple<T1, Types...>);   // #2
index f7fb32f..581e4db 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<class> struct X { static const bool primary = true; };
 template<class R, class... ArgTypes> struct X<R(int, ArgTypes...)> { 
   static const bool primary = false;
index 8b68711..0617b1a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>              char& f(Args... args);         // #1
 template<typename T1, typename... Args> short& f(T1 a1, Args... args); // #2
 template<typename T1, typename T2>      int& f(T1 a2, T2 a3);          // #3
index 8a1e285..605c55b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T, class U> struct A { };
 template<class... T, class ... U> void f( A<T,U>... p);
index 4240b4f..bb98531 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 // A basic implementation of TR1's function using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 #include <cassert>
index 9972928..ac072c6 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 
 // PR c++/33510
 #define SIZE_FROM_CTOR
index 51263fd..f235c36 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct int_placeholder;
 
index 4e090d1..aca58e3 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 // A basic implementation of TR1's mem_fn using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 #include <cassert>
index 45d11ba..af7c86f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // Contributed by Peter Dimov
 // PR c++/32597
 #include <assert.h>
index c47fbf4..413e070 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // PR c++/32597
 #include <assert.h>
 #include <new>
index c6e44bb..4aa5dba 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class... T>
 void f(T..., int, T...) { }
index 6098684..ee90c9b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/33939
 template<typename T>
 struct refs_only;
index 4c3bd95..fc81e9d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "note" }
 // PR c++/33509
 template<int M, int N> struct pair
index d8f14cb..5d08d13 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // PR c++/34101
 template<typename> struct A {};
 
index 4ad2cc3..b1c6b3d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 // An implementation of TR1's <tuple> using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 
index 33920a9..0a7acba 100644 (file)
@@ -1,7 +1,6 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/40155
-// { dg-options "-std=c++11" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 template <typename T> struct identity
 {  typedef T type;  };
index 5213dbb..29b528c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct tuple { };
 
 template<typename... Args1, typename... Args2>
index 2fc3471..263640d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/50086
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename T> void tfun();
 template<typename T> void fun1(T);
index 884ef88..ed80849 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename...>
 class tuple;
 
index 6a03df0..03fa39c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T1, typename T2>
 struct pair {};
 
index 654c4e9..502601f 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43143
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename T>
 T&& declval();
index d028a57..8bcedff 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43382
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct Container
index e656886..9214b01 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct nAny {
   template<class... T>
index cab73d7..69510e6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T&& create();
index ecd2410..4ba384c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47289
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "note" }
 
 template <template <typename... __ARGS> class _F, typename... _ARGS>
index d68b9ff..efa4c34 100644 (file)
@@ -1,6 +1,5 @@
 // Origin: PR c++/47326
-// { dg-options  "-std=c++11" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 template <int _N>
 struct A
index 0d6923f..d22f87c 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48451
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 namespace std {
   template <class T> T&& declval();
index 0986516..2e396c6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48736
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T&& create();
index 8acdfb8..3ecfb73 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48292
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename... Args> int g(Args...);
 
index 58eb163..2bdeb32 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct count;
 
 template<>
index 556594c..47a9ed9 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/45698
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class... Ts> struct tuple { };
 
index 01a6653..09bac28 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/48424
-// { dg-options "-std=c++11 -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 template<typename... Args1>
 struct S
index be43554..50d7e94 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49420
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct A { };
 
index bee367e..8f02fed 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/49251
-// { dg-options "-std=c++11 -Wunused-parameter" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wunused-parameter" }
 
 struct A {};
 template <int> int f(A);
index 80f546a..82ffe83 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49785
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename, typename ...> struct B { };
 template <typename> class A;
index 8c59a79..bb78185 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49593
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename... T> void f(T...) { }
 
index ab4ed45..05a9a79 100644 (file)
@@ -1,5 +1,5 @@
 // Origin: PR c++/48320
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class... T>
 struct tuple
index 477a9f1..04663d2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T> struct A { typedef T type; };
 
index 75ee1cd..ee742eb 100644 (file)
@@ -1,5 +1,5 @@
 // This should fail deduction, before it produces a candidate.
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class... T>
 void f(T... ts);               // { dg-message "deduction" }
index 4b56b01..661ed3d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 // A tuple type
 template<typename... Args> struct tuple { };
 
index 1d086fc..2112196 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/51507
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename ...>
 struct foo { typedef void type; };
index 7f03c10..aa21ddd 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/52043
-// { dg-options "-std=c++11 -Wreturn-type" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wreturn-type" }
 
 template < class T > struct Container
 {
index 8ddc810..d69c6f9 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/52292
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <template <typename...> class T>
 struct foo {
index 24601e0..8a59c98 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args> struct tuple1 { };
 template<typename... Args> struct tuple2 { };
 
index 841f7ce..fcdd2a7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename ...> struct S;
 
index 339d5f9..addbd74 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename R, typename... ArgTypes>
 struct make_function_type
 {
index da3e7c4..db0b268 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56782
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 T&& declval();
index a250e7c..8207d98 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/60248
-// { dg-options "-std=c++11 -g -fabi-version=2" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -fabi-version=2" }
 
 template<int...> struct A {};
 
index c7dadc6..895a548 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename R, typename... ArgTypes>
 struct make_function_type
 {
index 23a5710..d377d36 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename R, typename... ArgTypes>
 struct make_function_type
 {
index cc1a5f0..d54022a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename R, typename... ArgTypes>
 struct make_function_type
 {
index cfacd7a..fc0e2dd 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> class tuple { };
 
 template<typename T, template<typename T> class... Metafunctions>
index 7a08645..0ae2672 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 struct tuple {
   static const int value = 0;
index 023cb08..3d127ea 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args = int> // { dg-error "default argument" }
 class tuple2;
 
index e8bdf12..5b5a234 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T> struct add_pointer;
 template<typename T> struct add_reference;
 
index e2115f1..a379bd1 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, int... Dims>
 struct array { };
 
index c37f056..932d25b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename R, typename... ArgTypes>
 struct make_function_type
 {
index ea0d31c..15825f3 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, int... Dims>
 struct array { 
   static const int value = 0;
index fe953bc..4f172cd 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, T... Values>
 struct vector_c { };
 
index a5f1eee..5963760 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<int... Values>
 struct sum;
 
index 9150e42..2dbf092 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<template<int, int> class Meta, int Initial, int... Values>
 struct accumulate {
   static const int value = Initial;
index f4b4470..d690bb9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename Signature>
 struct function_traits;
 
index 4e60d9f..b027861 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename Signature>
 struct function_traits;
 
index a7bc877..8931e0f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename Signature>
 struct function_traits;
 
index f08ff62..c4a5b55 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 class tuple {};
 
index 36d93c1..0d8c0c9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T>
 void eat(T...);
 
index 48ae560..cffd703 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=gnu++11 -g" }
+// { dg-options "-g" }
+// { dg-do compile { target c++11 } }
 template<typename... T>
 void eat(T...) { }
 
index 0f620ec..0c5f6ee 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T>
 void eat(const T&...) { }
 
index d962f5a..bd25b84 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 void print_all() {}
 
 template<typename T, typename... Rest>
index e266b60..ae92bac 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<int I, typename... Args>
 void get_ith(const Args&... args);
 
index 518edec..8365c9b 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<int I, typename... Args>
 void get_ith(const Args&... args); // { dg-message "note" }
 
index bbd2159..c60e6d0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, typename... Args>
 void f(const T&, const Args&... args)
 {
index 2f6042e..db488ef 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Values>
 struct tuple
 {
index b320a8a..62031a3 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<int... Values>
 struct int_vec {};
 
index 4ee1955..b603478 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 struct tuple {};
 
index 5371a86..8e8f814 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "-std=gnu++11 -fabi-version=0" }
-// { dg-do compile }
+// { dg-options "-fabi-version=0" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 class tuple {};
 
index c6512e9..e4df9b8 100644 (file)
@@ -1,3 +1,3 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Values, typename T>
 struct backward_tuple {}; // { dg-error "end" }
index 3eee1f5..df11367 100644 (file)
@@ -1,5 +1,5 @@
 // A function parameter pack is only deduced if it's at the end
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 void f(const Args&... args, int oops);
 
index b5d917f..b1aa141 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "-std=gnu++11 -fabi-version=5" }
-// { dg-do compile }
+// { dg-options "-fabi-version=5" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 void f(Args...) { }
 
index 7310660..b2f1f8d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 int f(const Args&...);
 
index 1e314be..01df2e0 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++11" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 int f(const Args&...);
 
index a36a56b..2a79bc8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 int& f(Args...);
 
index 1fe0e60..0ea4ba6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 int& f(Args&...);
 
index 252a4e7..53916a9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T> struct wrap { };
 
 template<typename... Args>
index ca562c2..e672e76 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, typename... Args>
 int& f(const T&, Args...);
 
index 4ccedb1..49c2675 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 int& f(...);
 
 template<typename... Args>
index b2a3510..6595b7f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 struct tuple {
   static const int value = 0;
index 32fbb65..99e1699 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 int& f(int, double, ...);
 
 template<typename... Args>
index 9b2fa21..e072caa 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T1, typename T2>
 float& f(T1, T2);
 
index 9293d86..28ef857 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, T... Values>
 struct vector_c { };
 
index b595df5..ef3d150 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename F, typename... BoundArgs>
 class bound_functor
 {
index dd3ab10..3fbeefd 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename F, typename... BoundArgs>
 class bound_functor
 {
index e22a16b..bdf25cf 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename F, typename... BoundArgs>
 class bound_functor
 {
index f0c1beb..50b2445 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Elements>
 struct tuple { };
 
index ca12a2d..a3d2bf1 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, int... Dims>
 struct array { 
   int foo();
index 3099ef6..1423322 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 #include <typeinfo>
 
 template<typename... Args>
index e7abf8b..817883c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<class T, typename... VarArgs>
 void print(T t, VarArgs args); // { dg-error "packs not expanded" }
 // { dg-message "VarArgs" "note" { target *-*-* } 3 }
index bf6350e..3dc74cc 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename ... Args>
 struct tuple_base {};
 
index 8e1681e..57bbcfe 100644 (file)
@@ -1 +1 @@
-template<typename... Args> class tuple; // { dg-error "variadic templates" "" { target c++98 } }
+template<typename... Args> class tuple; // { dg-error "variadic templates" "" { target { ! c++11 } } }
index 83db8fc..945b95c 100644 (file)
@@ -1,2 +1,3 @@
-// { dg-options "-std=gnu++11 -pedantic" }
+// { dg-options "-pedantic" }
+// { dg-do compile { target c++11 } }
 template<typename... Args> class tuple;
index fdc5354..d7c313d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<int... Indexes>
   struct _Index_tuple { };
 
index 4544f92..e2ef931 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 struct unused;
 template<typename T1 = unused, typename T2 = unused, typename T3 = unused,
          typename T4 = unused, typename T5 = unused, typename T6 = unused>
index 943bd70..ac92221 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename Result, typename Functor, typename... ArgTypes>
 Result bind(Functor, ArgTypes...) { }
index 5538bc9..6e328cf 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Elements> struct tuple {};
 
 template<typename... Args>
index 22b3444..edcdfa8 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 extern "C" void abort();
 
 template<typename T, T... Values>
index eb86265..660e09a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T>
 struct stored_value
 {
index 68358f0..8b04996 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 struct tuple_base {
   static const int value = 0;
index cc26991..df26c6a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 template <typename T, T... Args> struct bomb;
 
 template <typename T>
index 8793215..101d220 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct list {};
 
 template<typename Sequence, typename Head>
index 77520b3..41f83c3 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 struct A {};
 struct B {};
 struct C {};
index 00e8fb4..533ed46 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 struct A {};
 struct B {};
 struct C {};
index 32df43f..a3aa070 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename...> struct tuple { };
 
index df147fd..d8d1ef9 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/33496
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<int... N> int foo ()
 {
index 49b5684..79badaa 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/33496
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<int M, int N> struct pair
 {
index 4d3d542..0a42435 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/33496
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<int M, int N> struct pair
 {
index e7a2a15..389199c 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/33213
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<template<typename> class...> struct A;
 
index 96fbfad..e2d7fa7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename... Args>
 struct tuple_base {
   static const int value = 0;
index a8bb902..0612e73 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/31434
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 
 extern "C" void abort ();
 
index e282394..0877255 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/33461
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename> struct A;
 
index 50be75d..f9bbc35 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/33461
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename> struct A;
 
index 3293d81..507fc7e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/31441
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename> struct A;
 
index 8e0dc44..debe75c 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/32565
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename...> struct A1;
 template<template<int...> class T> struct A1<T<0> > {};
index 6f6cb8a..708104a 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/32565
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename...> struct A1;
 template<template<int, int...> class T> struct A1<T<0, 1> > {};
index 7340054..2213ef7 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/33943
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename... A> struct foo {};
 
index 7e82f37..f3c0092 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/33965
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 template<typename T>
 struct foo
 {
index a917b53..b96c719 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<template<typename...> class TT>
 TT<int, float, double> foo(TT<int, float>)
index b5bedeb..1e59c1a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // Contributed by Eric Niebler
 template<typename T, typename U>
 struct pair
index 2d12de5..795da57 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
 template<typename T1, typename T2>
 struct pair {};
 
index 0529057..587a0e8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<template<typename...> class TT>
 struct X { };
index a5ebdfe..71f341c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<int N> struct Int2Type { };
 
 template<typename... T>
index b7fa000..99159a2 100644 (file)
@@ -1,5 +1,5 @@
 // Various tests for variadic templates and partial specialization.
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 // PR c++/36846
 template<typename A, typename B>
index c179884..63a1103 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/35297
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <class T=int, class... ARGS> 
 struct test2 {};
index 213e53c..f5f3228 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/40595
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<int N>
 struct S
index b84489a..e383938 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/39863
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <typename... T>
 struct A {};
index e5e7df1..189c4eb 100644 (file)
@@ -1,6 +1,6 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/41785
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 struct a {};
 
index 8c37832..b251cc3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/42266
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template<typename... _Elements>
   class tuple;
index a29ee8e..c463cac 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/42358
-// { dg-do assemble }
-// { dg-options -std=c++11 }
+// { dg-do assemble { target c++11 } }
 
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
 typedef __SIZE_TYPE__ size_t;
index f654431..8398b2a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/43054
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename R> struct future { };
 
index 9ba9367..9e40737 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename ... Args>
 struct foo
 {
index fba340a..6dec6df 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 struct A {};
 
 template<typename... T> struct B : T...
index 02373f8..ace905a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> struct A
 {
   int i __attribute__((aligned(__alignof(T)))); // { dg-error "parameter packs|T" }
index 7d37bf2..d0a8b95 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 struct A
 {
   operator int();
index a2e44b6..1036537 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T, typename = T> struct A {}; // { dg-error "must be at the end" }
 
 
index 3caee09..3ee7bad 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/34055
 template<typename...> struct A;
 
index 90ef772..c2a6ae5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/34102
 struct A {};
 
index e1a8574..bb2f829 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/34103
 template<typename> struct A {};
 
index 4f145ca..5bb2a21 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<template<typename... T> class Comp, typename... T> void f( T... Value)
 {
   static_assert( Comp<T>::value > 0, "" ); // { dg-error "parameter packs|T" }
index 0cf603e..91ee609 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename T, T a, T... Params>
 struct max
 {
index 6f3d015..ee0ed01 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename Fun, typename... Args> // { dg-error "template parameter" }
 struct call;
index 11e7391..74f35f7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<int...> struct A
 {
   void foo();
index 679bb9a..a032bfc 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct A;
 
 template<typename T, typename... U> struct A<T, U> // { dg-error "parameter packs|U" }
index f500396..1b1e669 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // PR c++/34751
 struct A {};
 
index d435138..496acae 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> struct A
 {
   template<T> struct B {}; // { dg-error "not expanded|T" }
index ae0c4ec..c42fe49 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<template<int> class... T> struct A
 {
   void foo(T<0>); // { dg-error "not expanded|T" }
index c642b77..3ef089d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename> struct A {};
 
 template<template<typename> class... T> void foo(T<int>) {} // { dg-error "not expanded|T" }
index 94de312..5b106e1 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<int... N> struct A
 {
   static void foo()
index 368a453..11315ca 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> struct A
 {
   static const int i __attribute__((aligned(__alignof(T)))) = 0; // { dg-error "not expanded|T" }
index 4646b7a..bc59023 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> int foo()
 {
   T t; // { dg-error "parameter packs|T" }
index 3e2654f..c20501f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> int foo()
 {
   typename T::X x; // { dg-error "parameter packs|T" }
index 491537d..2590f35 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename... T> struct A
 {
   T* x[1]; // { dg-error "parameter packs|T" }
index 3b2250b..0827bee 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<typename _Tp>
   _Tp&& forward(_Tp&& __t) { return __t; } // { dg-message "note" }
index 2df4bae..9af855e 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 struct A
 {
   template<typename... T> struct B;
index a425528..e38d339 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 struct A {};
 
 template<typename... T> struct B : T...
index 06fda61..0128b61 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 template<typename...> struct A;
 
 template<typename...T> struct A<T*> // { dg-error "not expanded|T" }
index 8745dde..c047a19 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "note" }
 
 void f() { }
index 178db4f..21891f1 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template<class U, class... T>
 void f()                       // { dg-message "note" }
index f3b53d0..cad2643 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename... Types> struct package {};
 
index 9f8c646..8a5a66a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11 -pedantic-errors" }
+// { dg-do compile { target c++11 } }
 // { dg-prune-output "invalid" }
 
 template<int>struct A{};
index d517b60..e360a99 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 struct foo {
   foo(int a, float b);
index 3d5efee..72d58b9 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55542
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 template <typename ... P>
 struct B
index 5c5eeff..e07d33b 100644 (file)
@@ -1,3 +1,4 @@
+// { dg-do compile { target c++11 } }
 // { dg-options "-std=gnu++98 -Wc++11-compat" }
 int static_assert; // { dg-warning "is a keyword" }
 int nullptr; // { dg-warning "is a keyword" }
index 116b233..324b009 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/50810
+// { dg-do compile { target c++11 } }
 // { dg-options "-std=gnu++98 -Wc++11-compat" }
 
 signed char data[] = { 0xff }; // { dg-warning "narrowing" }
index c3df9d9..204b4ae 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/50810
+// { dg-do compile { target c++11 } }
 // { dg-options "-std=gnu++98 -Wc++11-compat -Wno-narrowing" }
 
 signed char data[] = { 0xff };
index b2f0e12..134b3b8 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11_only } }
 
 class [[deprecated]] A // { dg-warning "attribute directive ignored" }
 {
index 8cd09c7..698268a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 class [[deprecated]] A
 {
index 7105095..0a109fe 100644 (file)
@@ -1,6 +1,5 @@
 // DR 1586
-// { dg-options "-std=c++1y" }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 template <class T>
 void f (T* p)
index eb54149..7a5b490 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 constexpr auto f() { return (char)42; }
 #define SA(X) static_assert ((X),#X)
index e3ed3a9..890cfda 100644 (file)
@@ -1,6 +1,6 @@
 // A template declared with auto should be declared with auto in an
 // explicit instantiation or explicit specialization, too.
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template <class T>
 auto f(T t) { return t; }
index a9984aa..132f959 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 auto f() { return; }           // OK, return type is void
 auto* g() { return; }          // { dg-error "no value" }
index ab4a1bb..04ea819 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 // { dg-final { scan-assembler "_ZN1AIiEcvDaEv" } }
 
 template <class T>
index 34a61ae..8f4e105 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 struct A {
   template <class T>
index e7e8699..f17c0e2 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56177
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 auto f ();
 auto f () { return 33; }
index bab58a6..987aa96 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-options "-std=c++1y -Wno-return-local-addr" }
+// { dg-do compile { target c++1y } }
+// { dg-options "-Wno-return-local-addr" }
 
 template<class,class> struct same_type;
 template<class T> struct same_type<T,T> {};
index 5caec52..233f26f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template<class,class> struct ST;
 template<class T> struct ST<T,T> {};
index 8bc961e..ee668b6 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++1y }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 int c;
 int d;
index e925033..ca1b0b0 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 struct A
 {
index a6f1606..ecd8b91 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 template <class T>
 auto f() { return T::i; }
index 4c2cee7..f89c86c 100644 (file)
@@ -1,3 +1,3 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 auto f() { return f(); }       // { dg-error "auto" }
index 3025558..818b6f5 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 template <class T>
 auto f(T) { return 42; }
index b508af9..df23a81 100644 (file)
@@ -1,5 +1,5 @@
 // N3638: decltype(auto) must stand alone
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 void f();
 decltype(auto) g1() { return &f; }
index f05cbb9..0077b89 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 struct A
 {
index 57503d7..f153e2a 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/58561
-// { dg-options "-std=c++1y -g" }
+// { dg-do compile { target c++1y } }
+// { dg-options "-g" }
 
 auto foo();
 
index 8808575..dfff202 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/60314
-// { dg-options "-std=c++1y -g" }
+// { dg-do compile { target c++1y } }
+// { dg-options "-g" }
 
 // fine
 decltype(auto) qux() { return 42; }
index 107c37f..73ec5a7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 bool b;
 auto f()
index 0b76bfc..4c3227a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template <class T>
 constexpr auto f(T t) { return t+1; }
index f9af6c2..b857140 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++1y }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 int i;
 auto& f() { return i; }
index 03ff537..123132d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template <class T, class U> struct ST;
 template <class T> struct ST<T,T> {};
index b915352..deb664c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 auto f();
 
index 15ccfc5..1badd6a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 auto f() { return 42; }                // { dg-message "old declaration .auto" }
 auto f();                      // OK
index 1fa7479..018d42c 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 // { dg-final { scan-assembler "_Z1fIiERDaRKT_S1_" } }
 
 template <class T>
index 834cfc3..0ea437c 100644 (file)
@@ -1,5 +1,5 @@
 // Mangling for decltype(auto)
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 void f();
 
index 1bc3995..a6f31f6 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/60312
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template<typename> struct A;
 
index 0b69593..2cfd84f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 #if __cplusplus <= 201103L
 #error
index a078fa2..453fe10 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target { ! c++1y } } }
 
 #define assert(E) if(!(E))__builtin_abort();
 
index 371e675..6c342a7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 int
 main()
index 69b1c69..cc670fe 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 #define assert(E) if(!(E))__builtin_abort();
 
index f9c814e..1d7c812 100644 (file)
@@ -1,5 +1,6 @@
 // Out-of-line generic member function definitions.
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 struct A {
   void f(auto x);
index 1181a80..478d6a5 100644 (file)
@@ -1,8 +1,7 @@
 // Testcase for an extension to allow return type deduction when the lambda
 // contains more than just a single return-statement.
 
-// { dg-options -std=c++1y }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 bool b;
 template <class T>
index 5e51526..0069a6e 100644 (file)
@@ -1,5 +1,6 @@
 // Generic lambda conversion to function ptr test from N3690 5.1.2.6
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 void f1(int (*)(int)) { }
 void f2(char (*)(int)) { }
index bb68738..c22bb97 100644 (file)
@@ -1,5 +1,5 @@
 // Generic lambda type dependence test part from N3690 5.1.2.12
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 void f(int, const int (&)[2] = {}) { } // #1
 void f(const int&, const int (&)[1]) { } // #2
index 4e26fc5..3e67ebd 100644 (file)
@@ -1,5 +1,5 @@
 // Mixed explicit and implicit generic lambda test.
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 int main()
 {
index 9f6d45a..f0e9a5b 100644 (file)
@@ -1,6 +1,6 @@
 // Ensure that generic lambdas properly construct and destroy user types.
-// { dg-options "-std=c++1y -DUSE_AUTO_SYNTAX" }
-// { dg-do run }
+// { dg-options "-DUSE_AUTO_SYNTAX" }
+// { dg-do run { target c++1y } }
 
 int i = 3;
 
index bd41b35..7065ac6 100644 (file)
@@ -1,6 +1,5 @@
 // Basic generic lambda test
-// { dg-options "-std=c++1y" }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 template <typename T, typename U> struct pair {};
 template <typename... T> struct tuple {};
index 556722c..f646b85 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/59271
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 extern "C" int printf (const char *, ...);
 
index 48a6268..b722aa7 100644 (file)
@@ -1,5 +1,5 @@
 // Explicit generic lambda test from N3690 5.1.2.5
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
 
 #include <iostream>
 
index d44b796..fbd7422 100644 (file)
@@ -1,5 +1,6 @@
 // Explicit generic lambda conversion to function ptr test from N3690 5.1.2.6
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 void f1(int (*)(int)) { }
 void f2(char (*)(int)) { }
index fba864b..f6e9e5b 100644 (file)
@@ -1,4 +1,5 @@
 // Ensure that generic lambdas properly construct and destroy user types.
-// { dg-options "-std=gnu++1y -DUSE_EXPLICIT_TEMPLATE_SYNTAX" }
+// { dg-do compile { target c++1y } }
+// { dg-options "-DUSE_EXPLICIT_TEMPLATE_SYNTAX" }
 
 #include "lambda-generic-udt.C"
index 1f66475..9721e87 100644 (file)
@@ -1,5 +1,5 @@
 // Generic lambda test from N3690 5.1.2.5
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 #include <iostream>
 
index a443642..f9a8005 100644 (file)
@@ -1,5 +1,5 @@
 // Test for the explicit initializer extension of C++1y
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 int main()
 {
index 6411fca..2525464 100644 (file)
@@ -1,6 +1,6 @@
 // N3648: capture init
-// { dg-options "-std=c++1y -w" }
-// { dg-do run }
+// { dg-options "-w" }
+// { dg-do run { target c++1y } }
 
 int main()
 {
index 068621d..83ec57e 100644 (file)
@@ -1,5 +1,5 @@
 // N3648: redundancy and capture init
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 int main()
 {
index 9044be6..4337228 100644 (file)
@@ -1,6 +1,6 @@
 // N3648: capture init at non-block scope
-// { dg-options "-std=c++1y -w" }
-// { dg-do run }
+// { dg-options "-w" }
+// { dg-do run { target c++1y } }
 
 int i = 42;
 int j = [x=i]{ return x; }();
index da4ea37..0affb31 100644 (file)
@@ -1,6 +1,5 @@
 // N3648: capture init example from paper
-// { dg-options "-std=c++1y" }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 int x = 4;
 auto y = [&r = x, x = x+1]()->int {
index edada40..b136f45 100644 (file)
@@ -1,6 +1,5 @@
 // Test for paren and brace initializers
-// { dg-options "-std=c++1y" }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 #include <initializer_list>
 
index 3ebf479..2b82bca 100644 (file)
@@ -1,6 +1,6 @@
 // Test that simple captures are not named in the closure type, but
 // initialized captures are named.
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 int main()
 {
index ad152cf..224cd1a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/59349
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 int foo () {
   [bar()]{};                   // { dg-error "empty initializer" }
index b593a48..0642f14 100644 (file)
@@ -1,5 +1,6 @@
 // Test that the parens don't show up in the mangling
-// { dg-options "-std=c++1y -Wno-return-local-addr" }
+// { dg-do compile { target c++1y } }
+// { dg-options "-Wno-return-local-addr" }
 // { dg-final { scan-assembler "_Z1gI1AEDTdtfp_1iET_" } }
 
 struct A { int i; };
index e26f967..b9debe1 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++1y }
-// { dg-do compile }
+// { dg-do compile { target c++1y } }
 
 #include <chrono>
 
index 7adb1b8..ec7d564 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/58500
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 struct A {};
 
index 9bcd771..34d43aa 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/58533
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
 
 void foo()
 {
index 3319f69..dd50731 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/58534
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 template<typename> void foo(const auto&) {}
 
index 2bf62b0..e071848 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/58535
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 struct A
 {
index be00438..05c00b3 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/58536
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 struct A
 {
index ad6f726..122b96f 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/58548
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 void foo(auto)
 {
index b9825b5..1b54af4 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/58549
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 void foo(auto)
 {
index 29297bb..ecc9258 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/58637
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
 
 template<> void foo(auto); // { dg-error "auto|not a template" }
index a9c19eb..226b318 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options -std=c++1y }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 template<typename, typename>
   struct is_same
index 5c9c208..c78d645 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/59110
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 int i = *(auto*)0; // { dg-error "" }
index 12fef4b..bc9d99e 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/59112
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
 
 void foo()
 {
index 19bab2c..8d2bf7f 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/59113
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
 
 void foo()
 {
index c0e01c1..b6e561f 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/59629
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 void foo(int i = []{ auto 0; }()); // { dg-error "expected|could not convert" }
index 16a3481..80d9f4d 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/59635
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 auto f = [] (auto, ...) { return 0; };
 
index bb7d9b5..6128753 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/59636
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 auto f = []() { return []<>() {}; };  // { dg-error "expected identifier" }
index 22af139..0125bdc 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/59638
-// { dg-do compile }
-// { dg-options "-std=gnu++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 void (*a)(auto);         // { dg-error "template declaration" }
 
index 191e5ac..6ac7720 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/60052
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 struct A
 {
index 345a9b8..8460390 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/60053
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 struct A
 {
index 21b043d..e61704e 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/60064
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 class A
 {
index 2aaa1e3..2cf8da1 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/60065
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 template <int> void foo(auto... x);
 template <typename> void foo2(auto... x);
index d5e2567..9a5b484 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/60190
-// { dg-do compile }
-// { dg-options "-std=c++1y" }
+// { dg-do compile { target c++1y } }
 
 auto f = []<int>() -> int() {}; // { dg-error "returning a function|expected" }
index a0db22d..001e993 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/60311
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template<void(*)(auto)> struct A {}; // { dg-error "auto" }
 
index 77efdc5..51d088a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/60376
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 struct A
 {
index 4f6497c..6d1d416 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/60377
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
+// { dg-options "" }
 
 void foo(auto, void (f*)()); // { dg-error "expected" }
 
index 94b00eb..5bb8042 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/60409
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 struct A
 {
index fe97127..951fa3c 100644 (file)
@@ -1,6 +1,5 @@
 // Origin: Dodji Seketeli <dodji@redhat.com>
-// { dg-options "-std=c++1y -pedantic-errors" }
-// { dg-do compile } 
+// { dg-do compile { target c++1y } }
 
 #include "../system-binary-constants-1.h"
 
index 71fc973..c99b2f7 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++11 }
+// { dg-do compile { target { c++11 && { ! c++1y } } } }
 
 template<typename CharT, CharT... String>
   int
index 42d25c0..d6b44d9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template<typename CharT, CharT... String>
   int
index d0eed91..7c23641 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 int
 operator "*"_s(unsigned long long) // { dg-error "expected empty string after 'operator'" }
index 149fd0d..51def3a 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 int
 operator L""_Ls(unsigned long long) // { dg-error "invalid encoding prefix in literal operator" }
index e58a66b..f6c3bae 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 #include "complex_literals.h"
 
index 1e93835..b642ed4 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++1y" }
+// { dg-do run { target c++1y } }
 
 #include <initializer_list>
 
index 29a59ed..5708cf8 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 #include <typeinfo>
 
index 1c67290..c3f71b5 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/57402
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 int i = 2;
 
index c9cdade..c84b0bb 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/60251
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 void foo(int n)
 {
index df47f26..d605e72 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/60250
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 template<typename> void foo()
 {
index 1efd00f..9b69452 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/60227
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 void foo(int n)
 {
index 4cd95d4..6aa5fcf 100644 (file)
@@ -1,6 +1,5 @@
 // N3639 allows initialization and capture of VLAs
-// { dg-options -std=c++1y }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 void f(int n)
 {
index a016904..7547036 100644 (file)
@@ -1,6 +1,5 @@
 // Test for throwing bad_array_length on invalid array length
-// { dg-options -std=c++1y }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 #include <new>
 
index 78b7eff..9de1d28 100644 (file)
@@ -1,6 +1,5 @@
 // Test for range-based for with VLAs.
-// { dg-options -std=c++1y }
-// { dg-do run }
+// { dg-do run { target c++1y } }
 
 #include <new>
 
index 1f6da29..5f0dfdf 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55149
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 void test(int n) {
   int r[n];
index b725e7b..ca527a8 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/57404
-// { dg-options "-std=c++11 -g" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g" }
 
 void f (int i)
 {
index 6e2031a..5077ae3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55149
-// { dg-options -std=c++1y }
+// { dg-do compile { target c++1y } }
 
 template<unsigned int TA>
  struct SA
index ea5c4d8..5f49d11 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/57408
-// { dg-options "-std=c++1y -pedantic-errors" }
+// { dg-do compile { target c++1y } }
 
 template<typename Callable>
   struct Impl
index b1cae21..11352fd 100644 (file)
@@ -1,6 +1,6 @@
 // PR debug/41828
-// { dg-do compile }
-// { dg-options "-gdwarf-2 -dA -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-gdwarf-2 -dA" }
 // { dg-final { scan-assembler-not "<anonymous" } }
 // { dg-final { scan-assembler-not "\\._\[0-9\]" } }
 // { dg-final { scan-assembler-not "\$_\[0-9\]" } }
index d637ef0..aef29ee 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/53756
-// { dg-options "-std=c++1y -g -dA -fno-debug-types-section" }
+// { dg-do compile { target c++1y } }
+// { dg-options "-g -dA -fno-debug-types-section" }
 // We're looking for something like
 
 // .uleb128 0x3    # (DIE (0x33) DW_TAG_subprogram)
index b5518ef..ffc9361 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-g -dA -gno-strict-dwarf -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -dA -gno-strict-dwarf" }
 // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_enumeration_type" 3 } }
 // { dg-final { scan-assembler-times " DW_AT_enum_class" 2 } }
 
index ee24eca..b315275 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/43912
-// { dg-options "-g -std=c++0x -dA -fno-merge-debug-strings -gno-strict-dwarf" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -dA -fno-merge-debug-strings -gno-strict-dwarf" }
 
 // Check for the local alias variables that point to the members of the closure.
 // { dg-final { scan-assembler-times "DW_TAG_variable\[^.\]*\.ascii \"j.0\"" 4 } }
index 024afc8..07e80a8 100644 (file)
@@ -1,6 +1,6 @@
 // PR debug/52260
-// { dg-do compile }
-// { dg-options "-gdwarf-4 -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-gdwarf-4" }
 
 namespace { typedef decltype (nullptr) T1; }
 struct B {};
index 52ae5c4..f2c0f24 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-gpubnames -gdwarf-4 -fno-debug-types-section -std=c++0x -dA" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-gpubnames -gdwarf-4 -fno-debug-types-section -dA" }
 // { dg-final { scan-assembler-times "\.section\[\t \]\[^\n\]*debug_pubnames" 1 } }
 // { dg-final { scan-assembler "\"\\(anonymous namespace\\)\\\\0\"+\[ \t\]+\[#;/|@!]+\[ \t\]+external name" } }
 // { dg-final { scan-assembler "\"one\\\\0\"+\[ \t\]+\[#;/|@!]+\[ \t\]+external name" } }
index 6c1e265..62d6b06 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-gpubnames -gdwarf-4 -fdebug-types-section -std=c++0x -dA" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-gpubnames -gdwarf-4 -fdebug-types-section -dA" }
 // { dg-final { scan-assembler-times "\.section\[\t \]\[^\n\]*debug_pubnames" 1 } }
 // { dg-final { scan-assembler "\"\\(anonymous namespace\\)\\\\0\"+\[ \t\]+\[#;/|@!]+\[ \t\]+external name" } }
 // { dg-final { scan-assembler "\"one\\\\0\"+\[ \t\]+\[#;/|@!]+\[ \t\]+external name" } }
index c954daa..56a6fba 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-g -dA -gdwarf-4 -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -dA -gdwarf-4" }
 // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_reference_type" 1 } }
 // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_rvalue_reference_type" 1 } }
 
index 85401b2..c584e90 100644 (file)
@@ -1,6 +1,7 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin PR debug/30161
-// { dg-options "-std=c++0x -g -dA" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -dA" }
 //
 // In theory the compiler instantiates count<int, char, long>,
 // count<char, long> and count<long>. In practice, only
index fc82dce..7bdcc4d 100644 (file)
@@ -1,7 +1,7 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin PR debug/30161
-// { dg-options "-g -dA -std=c++0x -fno-merge-debug-strings" }
-// { dg-do compile }
+// { dg-options "-g -dA -fno-merge-debug-strings" }
+// { dg-do compile { target c++11 } }
 
 // There must be 5 subprograms generated:
 // printf(const char*), printf<int, char, int>,
index a0ca613..0e63293 100644 (file)
@@ -1,6 +1,7 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin PR debug/30161
-// { dg-options "-std=c++0x -g -dA" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -dA" }
 //
 // In theory the compiler instantiates count<int, char, long>,
 // count<char, long> and count<long>. In practice, only
index 2b39359..c1eedd6 100644 (file)
@@ -1,6 +1,7 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin PR debug/30161
-// { dg-options "-std=c++0x -g -dA -fno-merge-debug-strings" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -dA -fno-merge-debug-strings" }
 
 // The type M<> should have one DW_TAG_GNU_template_parameter_pack DIE,
 // with no DW_AT_name attribute. We don't test the fact that it has no
index db36d59..85adb3b 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/52637
-// { dg-options "-g -std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g" }
 
 template <typename T>
 struct C { };
index 63c16ac..64e06e5 100644 (file)
@@ -1,5 +1,6 @@
 // Test that debugging backends don't crash on NULLPTR_TYPE.
-// { dg-options "-std=c++0x -fabi-version=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fabi-version=0" }
 
 typedef decltype(nullptr) nullptr_t;
 
index ed9e6d9..3ce42d9 100644 (file)
@@ -1,5 +1,5 @@
 // Red Hat bug 750545
-// { dg-do run { target c++98 } }
+// { dg-do run { target { ! c++11 } } }
 
 class excep {};
 class A
index e83fe44..06e9341 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template <unsigned Len, unsigned Align>
 struct aligned_storage
index 83e557c..6437212 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<typename T>
 struct X {
index 369aa10..e11178a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++0x" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 template <class T>
 int
index 3e1c1c4..9bafc42 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++0x" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 using global_vector_type  __attribute__((vector_size(16))) = float;
 
index 9c8e887..0097ba1 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/14401
 
 struct { struct { int& i ; } bar ; } foo ; // { dg-error "deleted|uninitialized" "uninit" }
-// { dg-warning "anonymous" "anon" { target c++98 } 3 }
-// { dg-message "should be initialized" "ref-uninit" { target c++98 } 3 }
+// { dg-warning "anonymous" "anon" { target { ! c++11 } } 3 }
+// { dg-message "should be initialized" "ref-uninit" { target { ! c++11 } } 3 }
index 0582f72..43f7192 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "-std=gnu++0x -w" }
-// { dg-do run }
+// { dg-options "-w" }
+// { dg-do run { target c++11 } }
 
 #include<typeinfo>
 #include<cassert>
index 9b8ac1b..4d79cc6 100644 (file)
@@ -1,6 +1,5 @@
 // PR libstdc++/48760
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 constexpr _Complex int i{1,2};
 constexpr _Complex int j{3};
index ccdafa5..f71d6ee 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/57041
-// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 template<typename T>
 union u {
index 9191c3e..8123fe9 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55842
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class=void> struct number {
   number() noexcept(noexcept(0)) { }
index e0ecef4..10891b6 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 #include <cassert>
 
 struct S {
index e1be1a0..b686229 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/56268
-// { dg-options -std=c++11 }
+// { dg-do compile { target c++11 } }
 
 template <class T>
 struct A {
index 2d30a08..7e5a502 100644 (file)
@@ -1,6 +1,7 @@
 // Test for int128 arithmetic conversions.
 // { dg-do compile { target int128 } }
-// { dg-options "-std=gnu++11" }
+// { dg-require-effective-target c++11 }
+// { dg-options "" }
 
 template <class T, class U> struct same;
 template <class T> struct same<T,T> { };
index 7833f3a..b3875ad 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/51365
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct A { };
 static_assert( ! __is_final (A), "A not final" );
index 21570d2..b146bde 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/48771
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct NonLiteral {
   NonLiteral();
index 939665d..d073889 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 #include <cassert>
 
 struct A
index 92aaadf..b89d909 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-options "-std=c++11" } */
+/* { dg-do compile { target c++11 } } */
 
 template <bool> struct enable_if {};
 template <> struct enable_if<true> {typedef void type;};
index cb57407..66ba02e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++0x" }
+// { dg-do run { target c++11 } }
 
 #include <cassert>
 
index b78cc7d..1209171 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<typename T1, typename T2>
   struct is_same
index a9c1992..aad5300 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<typename T1, typename T2>
   struct is_same
index 50f5288..91be4d5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<typename T1, typename T2>
   struct is_same
index 872fe52..2d6ec51 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 enum E1 : unsigned { E1_en = 1 };
 enum E2 : char { E2_en = 1 };
index 0bbed2b..95e76fa 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 enum E1 : unsigned { E1_en = 1 };
 enum E2 : char { E2_en = 1 };
index 9ffd244..2c56456 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<typename T1, typename T2>
   struct is_same
index a549f69..2ce774a 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Expected errors for char16_t/char32_t string literals. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x -fshort-wchar" } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-fshort-wchar" } */
 
 const char     s_0[]   = "ab";
 const char     s_1[]   = u"ab";        /* { dg-error "from wide string" } */
index 6a14f79..21e4386 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Expected errors for char16_t/char32_t string literals. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
+// { dg-options "" }
 
 const char     s_0[]   = "ab";
 const char     s_1[]   = u"ab";        /* { dg-error "from wide string" } */
index bab020e..4079b83 100644 (file)
@@ -1,7 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test unsupported concatenation of char16_t/char32_t* string literals. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
 
 const void *s0 = u"a"  "b";
 const void *s1 =  "a" u"b";
index 499b323..0d3fe33 100644 (file)
@@ -1,6 +1,5 @@
 // Test unsupported concatenation of UTF-8 string literals.
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 const void *s0 = u8"a"   "b";
 const void *s1 =   "a" u8"b";
index 286a0d0..366c3d4 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test the char16_t and char32_t promotion rules. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x -Wall -Wconversion -Wsign-conversion -Wsign-promo" } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-Wall -Wconversion -Wsign-conversion -Wsign-promo" } */
 
 extern void f_c (char);
 extern void fsc (signed char);
index 1daa0de..221ccf0 100644 (file)
@@ -1,7 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test parsing of u and U prefixes when also used as macros. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
 
 #define u      L
 #define U      L
index 0a6967f..221ccf0 100644 (file)
@@ -1,7 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test parsing of u and U prefixes when also used as macros. */
-/* { dg-do compile } */
-/* { dg-options "-std=gnu++0x" } */
+/* { dg-do compile { target c++11 } } */
 
 #define u      L
 #define U      L
index a131887..546566f 100644 (file)
@@ -1,7 +1,6 @@
 // Contributed by Kris Van Hees <kris.van.hees@oracle.com>
 // Test the support for char16_t character constants.
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 void f0 (char16_t c) {}
 void f1 (char32_t c) {}
index b5d201b..2026257 100644 (file)
@@ -1,7 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Ensure that typeinfo data is generated for char16_t/char32_t. */
-/* { dg-do link } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do link { target c++11 } } */
 
 #include <typeinfo>
 
index 41a83ff..7e15647 100644 (file)
@@ -1,8 +1,8 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Ensure that __CHAR16_TYPE__ and __CHAR32_TYPE__ exist, match the types they
    are the underlying data type for. */
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -Wall -Werror" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-Wall -Werror" } */
 
 extern "C" void abort (void);
 
index 641e836..3503f11 100644 (file)
@@ -1,7 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Ensure that a typedef to char16_t/char32_t issues an error in c++0x. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
 
 typedef short unsigned int     char16_t; /* { dg-error "redeclaration" } */
 typedef unsigned int           char32_t; /* { dg-error "redeclaration" } */
index 6a4af25..aa10b72 100644 (file)
@@ -1,7 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Ensure that type specifiers are not allowed for char16_t/char32_t. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
 
 signed char16_t                c0;             /* { dg-error "signed" } */
 signed char32_t                c1;             /* { dg-error "signed" } */
index fa07de9..8754e4d 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test the support for char16_t character constants. */
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -Wall -Werror" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-Wall -Werror" } */
 
 extern "C" void abort (void);
 
index d7a6056..4951e03 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test the support for char16_t* string literals. */
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -Wall -Werror" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-Wall -Werror" } */
 
 extern "C" void abort (void);
 
index 183347b..370dcf1 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test concatenation of char16_t* string literals. */
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -Wall -Werror" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-Wall -Werror" } */
 
 extern "C" void abort (void);
 
index 21cdb53..807b775 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Expected errors for char16_t character constants. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
+
 
 const static char16_t  c0 = u'';               /* { dg-error "empty character" } */
 const static char16_t  c1 = u'ab';             /* { dg-warning "constant too long" } */
index 98465a0..848d3a9 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test the support for char32_t character constants. */
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -Wall -Werror" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-Wall -Werror" } */
 
 extern "C" void abort (void);
 
index e2256ba..843e9b4 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test the support for char32_t* string constants. */
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -Wall -Werror" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-Wall -Werror" } */
 
 extern "C" void abort (void);
 
index bba893c..f5d1db0 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test concatenation of char32_t* string literals. */
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -Wall -Werror" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-Wall -Werror" } */
 
 extern "C" void abort (void);
 
index 744fea7..0b27030 100644 (file)
@@ -1,7 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Expected errors for char32_t character constants. */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
 
 const static char32_t  c0 = U'';               /* { dg-error "empty character" } */
 const static char32_t  c1 = U'ab';             /* { dg-warning "constant too long" } */
index 203b326..a1a3518 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-do run }
+// { dg-do run { target c++11 } }
 // { dg-require-iconv "ISO-8859-2" }
-// { dg-options "-std=c++0x -fexec-charset=ISO-8859-2" }
+// { dg-options "-fexec-charset=ISO-8859-2" }
 
 const char *str1 = "h\u00e1\U0000010Dky ";
 const char *str2 = "\u010d\u00E1rky\n";
index 417a8bf..bafe6e8 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
 
 const char     s0[]    = u8"ab";
 const char16_t s1[]    = u8"ab";       // { dg-error "from non-wide" }
index dfffad5..402558e 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-options "-std=c++11" } */
+/* { dg-do compile { target c++11 } } */
 
 typedef signed char __attribute__((vector_size(128) )) vec;
 
index 4fd937f..a41e8d5 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-options "-std=c++11" } */
+/* { dg-do compile { target c++11 } } */
 
 typedef double vec __attribute__((vector_size(2*sizeof(double))));
 typedef signed char vec2 __attribute__((vector_size(16)));
index 3d7c392..2199a22 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-options "-std=c++11" } */
+/* { dg-do compile { target c++11 } } */
 
 typedef long vec __attribute__((vector_size (2 * sizeof (long))));
 constexpr vec v = { 3, 4 };
index c073895..461d8a9 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-std=gnu++1y -Wsign-conversion" } */
+/* { dg-do compile { target c++1y } } */
+/* { dg-options "-Wsign-conversion" } */
 // Ignore warning on some powerpc-linux configurations.
 // { dg-prune-output "non-standard ABI extension" }
 // Ignore warning on Linux/x86
index 11ec7e1..1d7a1e4 100644 (file)
@@ -5,5 +5,5 @@
 
 typedef enum { e } T __attribute__((vector_size(8)));
 static void foo(T t) {}
-void bar (T t) {}              // { dg-error "no linkage" "" { target c++98 } }
-// { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" { target { ! c++98 } } } }
+void bar (T t) {}              // { dg-error "no linkage" "" { target { ! c++11 } } }
+// { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" { target c++11 } } }
index 5e58b55..b850749 100644 (file)
@@ -29,5 +29,5 @@ int main ()
   call<&B2::fn2> ();   // { dg-error "linkage|no matching" }
   call<&fn3> ();
   call<&B1::fn4> ();
-  call<&fn5> ();       // { dg-error "linkage|no matching" "" { target c++98 } }
+  call<&fn5> ();       // { dg-error "linkage|no matching" "" { target { ! c++11 } } }
 }
index 8f3be9e..e448be3 100644 (file)
@@ -1,5 +1,6 @@
 // Test that auto works with VLAs.
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
+// { dg-options "" { target { ! c++1y } } }
 
 void bar(int n)
 {
index 481583e..834a03a 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/38639
-// { dg-do compile }
-// { dg-options "-fopenmp -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fopenmp" }
 
 template<int> void
 foo ()
index 1301148..59a5683 100644 (file)
@@ -2,7 +2,8 @@
 // copy per shared object.
 
 // { dg-require-effective-target tls }
-// { dg-options "-std=c++11 -fPIC" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fPIC" }
 // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } }
 
 extern thread_local int i;
index fec9c6c..50dc481 100644 (file)
@@ -5,4 +5,4 @@ const char * y = { "hello" };
 int a = 2;
 int b = { 2,3 }; // { dg-error "requires one element in initializer" }
 int c = { { 2 } } ; // { dg-error "braces around scalar initializer" }
-int d = {}; // { dg-error "initializer" "" { target c++98 } }
+int d = {}; // { dg-error "initializer" "" { target { ! c++11 } } }
index ca39b01..0fa818c 100644 (file)
@@ -18,7 +18,7 @@ int main()
 {
    int i = { 1 };
    int j = { 1, 2 }; /* { dg-error "requires one element" } */
-   A a = { 6 }; /* { dg-error "initialize" "" { target c++98 } } */
+   A a = { 6 }; /* { dg-error "initialize" "" { target { ! c++11 } } } */
    B b = { 6 }; /* { dg-error "" } */
    C c = { 6 }; /* { dg-error "too many initializers" } */
    D d = { 6 };
similarity index 84%
rename from gcc/testsuite/g++.dg/cpp0x/regress/ctor1.C
rename to gcc/testsuite/g++.dg/init/ctor11.C
index c35d601..486f58a 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/49569
-// { dg-options -std=c++0x }
 
 struct A
 {
@@ -18,4 +17,3 @@ struct C
   C(): b() { }
   C(const B& b): b(b) { }
 };
-
similarity index 63%
rename from gcc/testsuite/g++.dg/cpp0x/regress/no-elide1.C
rename to gcc/testsuite/g++.dg/init/no-elide1.C
index 50df950..75b648e 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47503
-// { dg-options "-std=c++0x -fno-elide-constructors" }
+// { dg-options "-fno-elide-constructors" }
 
 struct A
 {
index a76ae2a..2c05dc3 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/16489
-// { dg-do compile { target c++98 } }
+// { dg-do compile { target { ! c++11 } } }
 
 const int NULL = 0;
 int main() { 
index e8945da..0a462be 100644 (file)
@@ -3,49 +3,49 @@
 
 struct A1              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const j; // { dg-message "should be initialized" "" { target c++98 } }
+  int const j; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A2              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const volatile i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const volatile i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A3              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A4              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int const& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A5              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S1 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T const i; // { dg-message "should be initialized" "" { target c++98 } }
+  T const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S2 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T const volatile i; // { dg-message "should be initialized" "" { target c++98 } }
+  T const volatile i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S3 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  T& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S4 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T const i; // { dg-message "should be initialized" "" { target c++98 } }
-  T& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  T const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
+  T& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct X
@@ -57,7 +57,7 @@ struct X
 
 struct Y11             // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Y1              // { dg-error "deleted" "" { target c++11 } }
@@ -67,7 +67,7 @@ struct Y1             // { dg-error "deleted" "" { target c++11 } }
 
 struct Y22             // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Y2              // { dg-error "deleted" "" { target c++11 } }
@@ -77,22 +77,22 @@ struct Y2           // { dg-error "deleted" "" { target c++11 } }
 
 struct Z1              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z2 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z3 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z4 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z5
@@ -111,7 +111,7 @@ struct Z            // { dg-error "deleted" "" { target c++11 } }
 
 union U // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 void f1 ()
index f868dfb..f341f8c 100644 (file)
@@ -3,7 +3,7 @@
 
 struct S               // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 class C
@@ -15,7 +15,7 @@ public:
 
 struct S2              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref;   // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref;   // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 class C2
@@ -35,7 +35,7 @@ class C3
 
 struct S4              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct C4
index 13a8221..81930d0 100644 (file)
@@ -3,49 +3,49 @@
 
 struct A1                // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const j; // { dg-message "should be initialized" "" { target c++98 } }
+  int const j; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A2                // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const volatile i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const volatile i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A3                // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A4                // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int const& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct A5                // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S1 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T const i; // { dg-message "should be initialized" "" { target c++98 } }
+  T const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S2 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T const volatile i; // { dg-message "should be initialized" "" { target c++98 } }
+  T const volatile i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S3 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  T& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 template <class T> struct S4 // { dg-error "uninitialized" "" { target c++11 } }
 {
-  T const i; // { dg-message "should be initialized" "" { target c++98 } }
-  T& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  T const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
+  T& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct X
@@ -57,7 +57,7 @@ struct X
 
 struct Y11               // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Y1                // { dg-error "deleted" "" { target c++11 } }
@@ -67,7 +67,7 @@ struct Y1               // { dg-error "deleted" "" { target c++11 } }
 
 struct Y22            // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Y2                    // { dg-error "deleted" "" { target c++11 } }
@@ -77,22 +77,22 @@ struct Y2                 // { dg-error "deleted" "" { target c++11 } }
 
 struct Z1              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z2              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z3              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z4              // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int& ref; // { dg-message "should be initialized" "" { target c++98 } }
+  int& ref; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 struct Z5
@@ -111,7 +111,7 @@ struct Z            // { dg-error "deleted" "" { target c++11 } }
 
 union U                        // { dg-error "uninitialized" "" { target c++11 } }
 {
-  int const i; // { dg-message "should be initialized" "" { target c++98 } }
+  int const i; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 
index b4b0833..96b5bef 100644 (file)
@@ -3,7 +3,7 @@
 
 struct A               // { dg-error "uninitialized" "" { target c++11 } }
 {
-    int const i : 2; // { dg-message "should be initialized" "" { target c++98 } }
+    int const i : 2; // { dg-message "should be initialized" "" { target { ! c++11 } } }
 };
 
 void f()
index 2fdf5c4..16bae4d 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -O -fdump-ipa-inline" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-O -fdump-ipa-inline" }
 
 class Foo
 {
index 190d9e2..b4f24a1 100644 (file)
@@ -1,7 +1,7 @@
-/* { dg-do run } */
+/* { dg-do run { target c++11 } } */
 /* There is a devirtualizable call. In PR60306 we deduced wrong target to cxa_pure_virtual.
    For gcc 4.10 we temporarily disable the devirtualization.  */
-/* { dg-options "-O3 -std=c++11"  } */
+/* { dg-options "-O3"  } */
 
 #include <vector>
 
index af6979c..04f6aa6 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-O -fipa-cp -std=gnu++0x -fno-early-inlining -fipa-cp-clone --param=ipa-cp-eval-threshold=1" } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-O -fipa-cp -fno-early-inlining -fipa-cp-clone --param=ipa-cp-eval-threshold=1" } */
 
 void bar (void *, void *);
 
index 00a28db..658c128 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/49813
 // We should handle asinh as a built-in in C++0x mode, even when strict.
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler-not "asinh" } }
 
 #include <math.h>
index b77c1d5..d90061f 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/57102
-// { dg-options "-std=gnu++0x -O2 -fno-inline -fdump-final-insns" }
+// { dg-options "-O2 -fno-inline -fdump-final-insns" }
+// { dg-do compile { target c++11 } }
 // { dg-final cleanup-saved-temps }
 
 namespace std
index 38a121d..00e5495 100644 (file)
@@ -1,6 +1,6 @@
 // PR tree-optimization/56381
-// { dg-do compile }
-// { dg-options "-std=c++11 -O2 -w" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-O2 -w" }
 
 template <class>
 class intrusive_ptr {};
index 8be9f09..9573663 100644 (file)
@@ -1,6 +1,6 @@
 // PR tree-optimization/57661
-// { dg-do compile }
-// { dg-options "-O2 -fno-tree-forwprop -std=gnu++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-O2 -fno-tree-forwprop" }
 
 template <typename>
 struct A
index b9a9698..71c51b2 100644 (file)
@@ -1,6 +1,6 @@
 // PR ipa/59947
-// { dg-do compile }
-// { dg-options "-O0 -std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-O0" }
 
 #pragma GCC optimize ("O2")
 template <typename T>
index fd38b2e..1569a82 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/59659
-// { dg-options "-fdump-tree-gimple -std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fdump-tree-gimple" }
 // { dg-final { scan-tree-dump-times "i = 0" 0 "gimple" } }
 // { dg-final { cleanup-tree-dump "gimple" } }
 
index e65ee94..94d0aec 100644 (file)
@@ -2,7 +2,7 @@
 
 class C
 {
-  auto union      // { dg-error "storage class" "" { target c++98 } }
+  auto union      // { dg-error "storage class" "" { target { ! c++11 } } }
     {
       int a;
     };            // { dg-error "multiple|specified" "" { target c++11 } }
index 707c2d5..586a40e 100644 (file)
@@ -4,4 +4,4 @@
 
 // { dg-do compile }
 
-enum { a = 3 } x; // { dg-warning "anonymous type" "" { target c++98 } }
+enum { a = 3 } x; // { dg-warning "anonymous type" "" { target { ! c++11 } } }
index 2220675..06aea4f 100644 (file)
@@ -1,6 +1,6 @@
 // Origin: PR c++/42634
-// { dg-options "-g -std=c++0x" }
-// { dg-do compile }
+// { dg-options "-g" }
+// { dg-do compile { target c++11 } }
 
 template<typename T> T declval();
 
index d5bc892..d96aeea 100644 (file)
@@ -1,6 +1,6 @@
 // Origin: PR c++/42336
-// { dg-options "-std=c++0x -O2 -g" }
-// { dg-do compile }
+// { dg-options "-O2 -g" }
+// { dg-do compile { target c++11 } }
 
 struct X {
       void func() {}
index c260431..dcae7da 100644 (file)
@@ -1,5 +1,6 @@
 // Origin: PR c++/42797
-// { dg-options "-g -O2 -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-g -O2" }
 
 template<typename _Tp, _Tp __v>     struct integral_constant     {
     static const _Tp value = __v;
index 3e02c25..db51362 100644 (file)
@@ -1,6 +1,6 @@
 /* Verify that final methods are devirtualized */
-/* { dg-do compile } */
-/* { dg-options "-fdump-tree-original -std=c++0x"  } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-fdump-tree-original"  } */
 
 struct A final
 {
index a075622..92e7537 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/53186
-// { dg-options "-fdump-tree-original -std=c++11"  }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fdump-tree-original"  }
 
 struct F1
 {
index a369084..00184fc 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/51852
-// { dg-do compile }
-// { dg-options "-std=gnu++11 --param ggc-min-heapsize=0 --param ggc-min-expand=0" }
+// { dg-do compile { target c++11 } }
+// { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0" }
 
 template <typename, typename>
 class transformed {};
similarity index 75%
rename from gcc/testsuite/g++.dg/cpp0x/regress/isnan.C
rename to gcc/testsuite/g++.dg/other/isnan.C
index 40d07e5..f80523d 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/48369
-// { dg-options -std=gnu++0x }
 
 extern "C" int isnan (double);
 
index 2fc6b78..192af75 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++0x" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 // Test to allow for va_copy with C++0x standard.
 
index b2d1ecb..03ff5fd 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-std=gnu++11 -Wall" } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-Wall" } */
 
 // Check that we can compare vector types that really are the same through
 // typedefs.
similarity index 76%
rename from gcc/testsuite/g++.dg/cpp0x/regress/regress6.C
rename to gcc/testsuite/g++.dg/parse/ambig9.C
index 6de64c0..68744d1 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/49691
-// { dg-options -std=c++0x }
 
 struct A { int x; };
 A* f();
index 2b823ae..6da84f8 100644 (file)
@@ -1,6 +1,5 @@
 /* PR c++/43081 */
-/* { dg-do compile } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do compile { target c++11 } } */
 
 struct A
 {
index 6e42ed8..319e6ac 100644 (file)
@@ -16,22 +16,22 @@ struct Foo
   };
 
   void method(void) {
-    typename Foo<::B>::template Nested<::B> n; // { dg-error "17:'<::' cannot begin" "17-begin" { target c++98 } }
-// { dg-message "17:'<:' is an alternate spelling" "17-alt" { target c++98 } 19 }
-// { dg-error "39:'<::' cannot begin" "39-begin" { target c++98 } 19 }
-// { dg-message "39:'<:' is an alternate spelling" "39-alt" { target c++98 } 19 }
+    typename Foo<::B>::template Nested<::B> n; // { dg-error "17:'<::' cannot begin" "17-begin" { target { ! c++11 } } }
+// { dg-message "17:'<:' is an alternate spelling" "17-alt" { target { ! c++11 } } 19 }
+// { dg-error "39:'<::' cannot begin" "39-begin" { target { ! c++11 } } 19 }
+// { dg-message "39:'<:' is an alternate spelling" "39-alt" { target { ! c++11 } } 19 }
     n.template Nested<B>::method();
-    n.template Nested<::B>::method();  // { dg-error "22:'<::' cannot begin" "error" { target c++98 } }
-// { dg-message "22:'<:' is an alternate" "note" { target c++98 } 24 }
+    n.template Nested<::B>::method();  // { dg-error "22:'<::' cannot begin" "error" { target { ! c++11 } } }
+// { dg-message "22:'<:' is an alternate" "note" { target { ! c++11 } } 24 }
     Nested<B>::method();
-    Nested<::B>::method(); // { dg-error "11:'<::' cannot begin" "error" { target c++98 } }
-// { dg-message "11:'<:' is an alternate" "note" { target c++98 } 27 }
+    Nested<::B>::method(); // { dg-error "11:'<::' cannot begin" "error" { target { ! c++11 } } }
+// { dg-message "11:'<:' is an alternate" "note" { target { ! c++11 } } 27 }
   }
 };
 
 template <int N> struct Foo2 {};
-template struct Foo2<::B>;  // { dg-error "21:'<::' cannot begin" "begin" { target c++98 } }
-// { dg-message "21:'<:' is an alternate" "alt" { target c++98 } 33 }
+template struct Foo2<::B>;  // { dg-error "21:'<::' cannot begin" "begin" { target { ! c++11 } } }
+// { dg-message "21:'<:' is an alternate" "alt" { target { ! c++11 } } 33 }
 // { dg-message "25:type/value mismatch" "mismatch" { target *-*-* } 33 }
 // { dg-error "25:expected a constant" "const" { target *-*-* } 33 }
 
@@ -39,11 +39,11 @@ int value = 0;
 
 void func(void)
 {
-  Foo<::B> f; // { dg-error "cannot begin" "begin" { target c++98 } }
-// { dg-message "alternate spelling" "alt" { target c++98 } 42 }
+  Foo<::B> f; // { dg-error "cannot begin" "begin" { target { ! c++11 } } }
+// { dg-message "alternate spelling" "alt" { target { ! c++11 } } 42 }
   f.Foo<B>::method();
-  f.Foo<::B>::method(); // { dg-error "8:cannot begin" "begin" { target c++98 } }
-// { dg-message "8:alternate spelling" "alt" { target c++98 } 45 }
+  f.Foo<::B>::method(); // { dg-error "8:cannot begin" "begin" { target { ! c++11 } } }
+// { dg-message "8:alternate spelling" "alt" { target { ! c++11 } } 45 }
 
   // Check cases where we the token sequence is the correct one, but there
   //  was no digraph or whitespaces in the middle, so we should not emit
@@ -61,9 +61,9 @@ void func(void)
   Foo[::value] = 0;
 }
 
-template struct Foo<::B>; // { dg-error "20:'<::' cannot begin" "begin" { target c++98 } }
-// { dg-message "20:is an alternate" "alt" { target c++98 } 64 }
+template struct Foo<::B>; // { dg-error "20:'<::' cannot begin" "begin" { target { ! c++11 } } }
+// { dg-message "20:is an alternate" "alt" { target { ! c++11 } } 64 }
 
 // On the first error message, an additional note about the use of 
 //  -fpermissive should be present
-// { dg-message "17:\\(if you use '-fpermissive' or '-std=c\\+\\+11', or '-std=gnu\\+\\+11' G\\+\\+ will accept your code\\)" "-fpermissive" { target c++98 } 19 }
+// { dg-message "17:\\(if you use '-fpermissive' or '-std=c\\+\\+11', or '-std=gnu\\+\\+11' G\\+\\+ will accept your code\\)" "-fpermissive" { target { ! c++11 } } 19 }
index 203ca3f..3e6d374 100644 (file)
@@ -8,6 +8,6 @@ struct B;
 template <class A>
 struct Foo {};
 
-Foo<::B> foo;   // { dg-bogus "error" "error in place of warning" { target c++98 } }
-// { dg-warning "4: '<::' cannot begin a template-argument list" "warning <::" { target c++98 } 11 }
-// { dg-message "4:'<:' is an alternate spelling for '.'. Insert whitespace between '<' and '::'" "note <:" { target c++98 } 11 }
+Foo<::B> foo;   // { dg-bogus "error" "error in place of warning" { target { ! c++11 } } }
+// { dg-warning "4: '<::' cannot begin a template-argument list" "warning <::" { target { ! c++11 } } 11 }
+// { dg-message "4:'<:' is an alternate spelling for '.'. Insert whitespace between '<' and '::'" "note <:" { target { ! c++11 } } 11 }
index 963d269..af2194c 100644 (file)
@@ -2,4 +2,4 @@
 
 template <const int*> class Helper { };
 const int foo = 0;
-typedef Helper<&foo> HelperType; // { dg-error "linkage|type" "" { target c++98 } }
+typedef Helper<&foo> HelperType; // { dg-error "linkage|type" "" { target { ! c++11 } } }
index 7d969e4..b628f99 100644 (file)
@@ -7,4 +7,4 @@ struct X
    template <int i> struct Y {};
 };
 
-typedef X::template Y<0> y; // { dg-error "template|invalid" "" { target c++98 } }
+typedef X::template Y<0> y; // { dg-error "template|invalid" "" { target { ! c++11 } } }
index 54d39fa..21f1ac0 100644 (file)
@@ -15,5 +15,5 @@ void test()
 
 int main()
 {
-  typename A<double>::template B<int> b; // { dg-error "template|expected" "" { target c++98 } }
+  typename A<double>::template B<int> b; // { dg-error "template|expected" "" { target { ! c++11 } } }
 }
index e4ff52f..e97fb76 100644 (file)
@@ -31,7 +31,7 @@ if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
 # If a testcase doesn't have special options, use these.
 global DEFAULT_CXXFLAGS
 if ![info exists DEFAULT_CXXFLAGS] then {
-    set DEFAULT_CXXFLAGS " -ansi -pedantic-errors -Wno-long-long"
+    set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
 }
 
 # The procedures in plugin-support.exp need these parameters.
index f54162f..d6801a7 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-options "-std=c++11" } */
+/* { dg-do compile { target c++11 } } */
 
 extern "C" void do_not_remove ();
 
index 0a21ef5..231f9e3 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
-/* { dg-options "-O2 -fno-omit-frame-pointer -fPIC -std=gnu++11" } */
+// { dg-require-effective-target c++11 }
+/* { dg-options "-O2 -fno-omit-frame-pointer -fPIC" } */
 
 typedef int int32;
 typedef long long int64;
index 91867ba..950cadd 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do link } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do link { target c++11 } } */
 /* { dg-final { simulate-thread } } */
 /* { dg-require-effective-target sync_char_short } */
 /* { dg-require-effective-target sync_int_long } */
index 601555b..ee11da5 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do link } */
-/* { dg-options "-std=c++0x" } */
+/* { dg-do link { target c++11 } } */
 /* { dg-final { simulate-thread } } */
 /* { dg-require-effective-target sync_int_long } */
 
similarity index 57%
rename from gcc/testsuite/g++.dg/cpp0x/regress/regress1.C
rename to gcc/testsuite/g++.dg/template/aggr-init1.C
index a6fe399..a09c7a7 100644 (file)
@@ -1,6 +1,4 @@
 // PR c++/46903
-// This isn't C++0x code, but it was breaking in C++0x mode.
-// { dg-options -std=c++0x }
 
 struct A {};
 struct B {
index dabefc8..ef84cfd 100644 (file)
@@ -10,5 +10,5 @@ template <typename T> class X {};
 void fn ()
 {
   class L {};
-  X<L> f; // { dg-error "uses local type|trying to instantiate|no type|invalid type" "" { target c++98 } }
+  X<L> f; // { dg-error "uses local type|trying to instantiate|no type|invalid type" "" { target { ! c++11 } } }
 }
similarity index 86%
rename from gcc/testsuite/g++.dg/cpp0x/regress/array1.C
rename to gcc/testsuite/g++.dg/template/array27.C
index 629ab41..95680dd 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/47808
-// { dg-options -std=c++0x }
+// { dg-options "" }
 
 template <typename T>
 inline T abs (T const & x) { return x; }
index 08c86f0..f2467fa 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<class T, T t = (T)0>
 struct S
index 4fcd524..c15f93a 100644 (file)
@@ -1,6 +1,5 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
-// { dg-options "-std=c++0x" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 struct F { F(int) {}};
 
similarity index 98%
rename from gcc/testsuite/g++.dg/cpp0x/regress/condition1.C
rename to gcc/testsuite/g++.dg/template/condition1.C
index 0346764..4151e9e 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/47950
-// { dg-options -std=c++0x }
 
 template <typename T> struct empty
 {
index 5d3ec5b..6de0258 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/49176
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 struct A { static int a(); };
 
@@ -1,5 +1,4 @@
 // PR c++/47897
-// { dg-options -std=c++0x }
 
 template < typename T, T N >
 struct S
@@ -1,5 +1,4 @@
 // PR c++/48707
-// { dg-options -std=c++0x }
 
 struct A {
   static int a();
index d11848a..7131501 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/35828
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template < typename > struct A ;
 template < template < typename > class = A >
index 20014d6..33fb51d 100644 (file)
@@ -1,6 +1,5 @@
 // Origin PR c++/48574
-// { dg-options "-std=c++0x" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
similarity index 73%
rename from gcc/testsuite/g++.dg/cpp0x/regress/enum1.C
rename to gcc/testsuite/g++.dg/template/enum8.C
index 6e29f9e..314100f 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/47482
-// { dg-options -std=c++0x }
 
 template<class>
 struct K
diff --git a/gcc/testsuite/g++.dg/template/error-recovery3.C b/gcc/testsuite/g++.dg/template/error-recovery3.C
new file mode 100644 (file)
index 0000000..f8fd94b
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/48212
+
+template < bool > void
+foo ()
+{
+  const bool b =;              // { dg-error "" }
+  foo < b > ();                        // { dg-error "" }
+}
index d37b734..3b5537b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/37177
-// { dg-options -std=c++0x }
+// { dg-do compile { target c++11 } }
 
 #include <typeinfo>
 
index 241a68e..4f07098 100644 (file)
@@ -1,6 +1,5 @@
 // Origin PR c++/47172
-// { dg-options "-std=c++0x" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 67afbca..b3abc26 100644 (file)
@@ -1,6 +1,5 @@
 // Origin: PR c++/48656
-// { dg-options "-std=c++0x" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 struct A {
  int f();
similarity index 86%
rename from gcc/testsuite/g++.dg/cpp0x/regress/regress3.C
rename to gcc/testsuite/g++.dg/template/koenig10.C
index ffbb97f..6a1b9b5 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/47511
-// { dg-options -std=c++0x }
 
 namespace N {
     template <typename T> bool g( T ) {
similarity index 91%
rename from gcc/testsuite/g++.dg/cpp0x/regress/call1.C
rename to gcc/testsuite/g++.dg/template/new12.C
index 833318b..84eedf8 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/48500
-// { dg-options -std=c++0x }
 
 struct linked_ptr {
 };
similarity index 80%
rename from gcc/testsuite/g++.dg/cpp0x/regress/non-const1.C
rename to gcc/testsuite/g++.dg/template/non-const1.C
index 7fc66a7..16a3851 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/48015
-// { dg-options -std=c++0x }
 
 template <typename T> T f(T);
 template <typename T> void g()
index f399408..85393c1 100644 (file)
@@ -8,7 +8,7 @@ template<const B* b> class D {};
 template<B* b> class E {};
 
 template<const B* b> void f(D<b> &, C<static_cast<const A*>(b)> &) {} // { dg-error "" "" }
-template<const B* b> void g(D<b> &, E<const_cast<B*>(b)> &) {} // { dg-error "" "" { target c++98 } }
+template<const B* b> void g(D<b> &, E<const_cast<B*>(b)> &) {} // { dg-error "" "" { target { ! c++11 } } }
 
 B b;
 
@@ -16,7 +16,7 @@ int main()
 {
   C<static_cast<const A*>(&b)> c; // { dg-error "" }
   D<&b> d;
-  E<const_cast<B*>(&b)> e; // { dg-error "" "" { target c++98 } }
+  E<const_cast<B*>(&b)> e; // { dg-error "" "" { target { ! c++11 } } }
   f(d, c);                // { dg-error "" "" { target c++11 } }
   g(d, e);
 }
similarity index 80%
rename from gcc/testsuite/g++.dg/cpp0x/regress/ptrmem1.C
rename to gcc/testsuite/g++.dg/template/ptrmem25.C
index 873000b..381d055 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/49298
-// { dg-options -std=c++0x }
 
 template <class T, int T::*> struct B { };
 template <class T> struct A
index 691517f..0a980f4 100644 (file)
@@ -14,7 +14,7 @@ template <template <class> class TT> struct X
 
 struct C
 {
-       X<A::template B> x;  // { dg-error "template" "" { target c++98 } }
+       X<A::template B> x;  // { dg-error "template" "" { target { ! c++11 } } }
 };
 
 int main()
index 27bce25..326823b 100644 (file)
@@ -1,6 +1,5 @@
 // PR c++/40944
-// { dg-options -std=c++0x }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 template<typename T>
 struct make { static T&& it(); };
index 28a06d2..3df581a 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/41927
-// { dg-options "-std=c++0x -Wall" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wall" }
 
 // We were getting a spurious ||/&& warning about the enable_if with the
 // source position of d1.
index 9767bc0..61bd8da 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44907
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 #include <utility>
 
index cdac99d..57846fe 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44908
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 #include <utility> 
 
index 9e0197a..53ed51d 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/44969
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 template<typename Tp, typename... Args>
   class mini_is_constructible
index 4f5868f..f5a13ea 100644 (file)
@@ -1,7 +1,6 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin PR c++/42225
-// { dg-options "-std=c++0x" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct A
index 445db17..42abbbb 100644 (file)
@@ -1,6 +1,5 @@
 // Origin: PR c++/46394
-// { dg-options "-std=c++0x" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
 template<class T>
 struct S0
index 85bdbbc..80ae98d 100644 (file)
@@ -1,6 +1,6 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/40684
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct A
 {
similarity index 73%
rename from gcc/testsuite/g++.dg/cpp0x/regress/value-dep1.C
rename to gcc/testsuite/g++.dg/template/value-dep1.C
index 112389d..7c9b927 100644 (file)
@@ -1,5 +1,4 @@
 // PR c++/48265
-// { dg-options -std=c++0x }
 
 template < int > struct S
 {
index 33064d6..5a47e98 100644 (file)
@@ -1,7 +1,7 @@
 // Test for CSE of the wrapper function: we should only call it once
 // for the two references to ir.
-// { dg-do run }
-// { dg-options "-std=c++11 -O -fno-inline -save-temps" }
+// { dg-do run { target c++11 } }
+// { dg-options "-O -fno-inline -save-temps" }
 // { dg-add-options tls }
 // { dg-require-effective-target tls_runtime }
 // { dg-final { scan-assembler-times "call *_ZTW2ir" 1 { xfail *-*-* } } }
index 174aac4..274e800 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55801
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target tls }
 
 class C;
index 53bc297..5d3ba69 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/58672
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target tls }
 
 struct A
index 10b53af..a43cf88 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // { dg-add-options tls }
 // { dg-require-effective-target tls_runtime }
 // { dg-require-cxa-atexit "" }
index a24df28..f8df917 100644 (file)
@@ -3,7 +3,7 @@
 // __cxa_thread_atexit into glibc to get this right.
 
 // { dg-do run { xfail *-*-* } }
-// { dg-options "-std=c++11" }
+// { dg-require-effective-target c++11 }
 // { dg-add-options tls }
 // { dg-require-effective-target tls_runtime }
 
index 56177da..45efc0a 100644 (file)
@@ -2,7 +2,7 @@
 // with a wrapper.
 
 // { dg-require-effective-target tls }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler-not "_ZTW1i" } }
 
 thread_local int i = 42;
index 1e8078f..c836605 100644 (file)
@@ -2,7 +2,7 @@
 // unit, we build a wrapper but don't bother with an init function.
 
 // { dg-require-effective-target tls }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_ZTW1i" } }
 // { dg-final { scan-assembler-not "_ZTH1i" } }
 
index ca40e52..f2fda8c 100644 (file)
@@ -3,7 +3,7 @@
 
 // { dg-require-alias "" }
 // { dg-require-effective-target tls }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-final { scan-assembler "_ZTW1i" } }
 // { dg-final { scan-assembler "_ZTH1i" } }
 
index 7c8481c..e0d66db 100644 (file)
@@ -3,7 +3,8 @@
 
 // { dg-require-effective-target tls }
 // { dg-require-effective-target fpic }
-// { dg-options "-std=c++11 -fPIC" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fPIC" }
 // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } }
 
 extern thread_local int i;
index e7734a0..67bde55 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target tls }
 
 // The variable should have a guard.
index bb255de..6b67466 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // { dg-add-options tls }
 // { dg-require-effective-target tls_runtime }
 
index e84ef56..8304a4d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // { dg-add-options tls }
 // { dg-require-effective-target tls_runtime }
 
index 39dd602..378cf3d 100644 (file)
@@ -1,7 +1,6 @@
 // Test for cleanups in the main thread without -pthread.
 
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // { dg-add-options tls }
 // { dg-require-effective-target tls_runtime }
 
index 70e97d3..f261d54 100644 (file)
@@ -1,7 +1,6 @@
 // Test for cleanups in the main thread without -pthread.
 
-// { dg-do run }
-// { dg-options "-std=c++11" }
+// { dg-do run { target c++11 } }
 // { dg-add-options tls }
 // { dg-require-effective-target tls_runtime }
 // { dg-require-cxa-atexit "" }
index f453b96..3cb02dd 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target tls }
 
 // The reference temp should be TLS, not normal data.
index 0fdfe7e..fb847ce 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target tls }
 
 // The reference temp should be TLS, not normal data.
index 9b91a6b..23f2a1b 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/55800
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 // { dg-require-alias "" }
 // { dg-require-effective-target tls }
 // { dg-final { scan-assembler "_ZTH12foo_instance" { target tls_native } } }
index 9b1a8c6..887945a 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fgnu-tm -O -std=c++0x -fdump-tree-tmmark -fdump-tree-tmlower" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm -O -fdump-tree-tmmark -fdump-tree-tmlower" }
 
 struct TrueFalse
 {
index f9cbbb6..d228248 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fgnu-tm -std=c++0x" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm" }
 
 // All of these must fail, because they are not constant expressions.
 template<typename T> int foo(int x, T t)
index 958290e..973b442 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fgnu-tm -O -std=c++0x -fdump-tree-tmmark -fdump-tree-tmlower" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm -O -fdump-tree-tmmark -fdump-tree-tmlower" }
 
 // Same as noexcept-1.C but all noexcepts are false.
 
index 1166a15..a7eb7ef 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fgnu-tm -O -std=c++0x -fdump-tree-tmmark -fdump-tree-tmlower" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm -O -fdump-tree-tmmark -fdump-tree-tmlower" }
 
 // Similar to noexcept-1.C but without an explicit (true) for noexcept.
 
index 44ef617..4267432 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fgnu-tm -O -std=c++0x -fdump-tree-tmmark -fdump-tree-tmlower" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm -O -fdump-tree-tmmark -fdump-tree-tmlower" }
 
 int global;
 
index 4391159..dd9845c 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fno-exceptions -fgnu-tm -O -std=c++0x -fdump-tree-tmlower" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-exceptions -fgnu-tm -O -fdump-tree-tmlower" }
 
 struct TrueFalse
 {
index b1ada3c..131fa38 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -fgnu-tm" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm" }
 
 void foo()
 {
index 9287e1b..b566b0c 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -fgnu-tm" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm" }
 
 int
 foo (void)
index 8a27bc4..9380fe7 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++11 -fgnu-tm" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm" }
 
 int
 foo (void)
index 5387024..09deb80 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fgnu-tm -O -std=c++0x -fdump-tree-tmmark" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fgnu-tm -O -fdump-tree-tmmark" }
 
 struct TrueFalse
 {
index c081240..c04ef9e 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-std=gnu++0x" } */
+// { dg-do compile { target c++11 } }
 
 typedef __SIZE_TYPE__ size_t;
 namespace std __attribute__ ((__visibility__ ("default"))) {
index 42dedee..00731c3 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x -fnon-call-exceptions" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fnon-call-exceptions" }
 
 void foo (int *k) noexcept
 {
index 7eac9e0..8180648 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do run } */
-/* { dg-options "-std=c++0x -fno-tree-forwprop" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-fno-tree-forwprop" } */
 
 typedef __SIZE_TYPE__ size_t;
 
index 65009ff..79819e0 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-std=gnu++0x" } */
+// { dg-do compile { target c++11 } }
 
 struct A
 {
index 766f294..483556d 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-std=c++11" } */
+/* { dg-do compile { target c++11 } } */
 void gg();
 static __typeof(gg) __gthrw_gg __attribute__((__weakref__("gg")));
 
index 1bb9cf4..ab0f16f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 namespace std
 {
index 552da8d..dee5b60 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-std=gnu++0x -fno-inline" } */
+/* { dg-do compile { target c++11 } } */
+/* { dg-options "-fno-inline" } */
 /* { dg-add-options bind_pic_locally } */
 
   struct B
index db504c5..93d292a 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile }
-// { dg-options "-std=c++0x" }
+// { dg-do compile { target c++11 } }
 
 struct Iter
 {
index 880c454..be4c6e1 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do compile }
-// { dg-options "-fprofile-use -std=gnu++11" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-fprofile-use" }
 
 class A {
   int m_fn1() const;
index 6c2310a..697bd01 100644 (file)
@@ -1,7 +1,6 @@
 /* Driver fragment for __builtin_shuffle of any vector shape.  */
 
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 extern "C" void abort(void);
 
index 6277068..501d9da 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 typedef unsigned short V __attribute__((vector_size(32)));
 typedef V VI;
index 5680117..1cc8bea 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 typedef unsigned char V __attribute__((vector_size(16)));
 typedef V VI;
index ba45078..71a6ac4 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// // { dg-do run }
+// // { dg-do run { target c++11 } }
 #if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8
 typedef double V __attribute__((vector_size(16)));
 typedef unsigned long long VI __attribute__((vector_size(16)));
index a427284..dd521f2 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// // { dg-do run }
+// // { dg-do run { target c++11 } }
 
 #if __SIZEOF_LONG_LONG__ == 8
 typedef unsigned long long V __attribute__((vector_size(16)));
index dd229ba..274dacd 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// // { dg-do run }
+// // { dg-do run { target c++11 } }
 #if __SIZEOF_FLOAT__ == 4
 typedef float V __attribute__((vector_size(8)));
 # if __SIZEOF_INT__ == 4
index 2670855..36aeb82 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 #if __SIZEOF_INT__ == 4
 typedef unsigned int V __attribute__((vector_size(8)));
 typedef V VI;
index e26f2c9..a1694b2 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8
 typedef double V __attribute__((vector_size(32)));
index 42cf60c..8a5e5c5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #if __SIZEOF_LONG_LONG__ == 8
 typedef unsigned long long V __attribute__((vector_size(32)));
index c7d5843..aa67dbb 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 
 #if __SIZEOF_FLOAT__ == 4
index af37de7..4d377c1 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #if __SIZEOF_INT__ == 4
 typedef unsigned int V __attribute__((vector_size(16)));
index 33b20c6..c2be87f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 typedef unsigned short V __attribute__((vector_size(16)));
 typedef V VI;
index 8681509..5ec040e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 typedef unsigned char V __attribute__((vector_size(8)));
 typedef V VI;
index 8583aa2..27631d7 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=c++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
 
 #if __SIZEOF_INT__ == 4
 typedef unsigned int V __attribute__((vector_size(32)));
index eb2b51f..77f208a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/59255
-// { dg-options "-O2 -std=c++11" }
+// { dg-options "-std=c++11 -O2" }
 
 struct S
 {
index 9223e83..a048077 100644 (file)
@@ -35,7 +35,7 @@ void doit (array *a)
 {
   for (ORIG i = 0; i < a->len; ++i)
     {
-      if (FIRST  CAST (i) >= CAST (a->len))
+      if (FIRST  CAST i >= CAST (a->len))
        throw 5;
       call (a->data[i]);
     }
index a5c0e33..3e16892 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do run } */
-/* { dg-options "-fsanitize=shift -w -std=c++11" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-fsanitize=shift -w" } */
 
 int
 main (void)
index fbc16df..867908a 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do run } */
-/* { dg-options "-fsanitize=shift -w -std=c++11" } */
+/* { dg-do run { target c++11 } } */
+/* { dg-options "-fsanitize=shift -w" } */
 
 int
 main (void)
index 7023c70..ca1e922 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do run } */
-/* { dg-options "-fsanitize=vla-bound -Wall -Wno-unused-variable -std=c++1y" } */
+/* { dg-do run { target c++1y } } */
+/* { dg-options "-fsanitize=vla-bound -Wall -Wno-unused-variable" } */
 /* { dg-shouldfail "ubsan" } */
 
 int
index 644ae1c..a1f0cf7 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/48420
-// { dg-do compile { target c++98 } }
+// { dg-do compile { target { ! c++11 } } }
 
 void foo(int* p);
 
index d7e226c..675e959 100644 (file)
@@ -1,6 +1,7 @@
 // PR c++/56607
 // { dg-do compile { target { { lp64 || ilp32 } || llp64 } } }
-// { dg-options "-O2 -Wdiv-by-zero -std=c++11" }
+// { dg-require-effective-target c++11 }
+// { dg-options "-O2 -Wdiv-by-zero" }
 
 constexpr int sc () { return sizeof (char); }
 constexpr int si () { return sizeof (int); }
index ab9c97a..6e00e02 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/45894
-// { dg-do compile }
-// { dg-options "-std=c++0x -Wsequence-point" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wsequence-point" }
 
 struct F
 {
index 7827574..9c2e8b8 100644 (file)
@@ -1,7 +1,7 @@
 // Test the declaration of nested lambda function shadows
 // a parameter or previous local.
-// { dg-do compile }
-// { dg-options "-std=c++0x -Wshadow" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wshadow" }
 
 struct S {};
 int f1(int x)   // { dg-message "shadowed declaration" }
index 4d26b36..75fd1e3 100644 (file)
@@ -1,6 +1,6 @@
 // PR c++/55643
-// { dg-do compile }
-// { dg-options "-std=c++11 -Wunused" }
+// { dg-do compile { target c++11 } }
+// { dg-options "-Wunused" }
 
 enum class E { e = 123 };
 
index ba83ac1..df479d0 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! c++1y } } } */
 /* { dg-options "-pedantic-errors -Wvla" } */
 
 void func (int i)
index c4acbde..f5727ea 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "-std=gnu++0x -Wdelete-non-virtual-dtor" }
-// { dg-do compile }
+// { dg-options "-Wdelete-non-virtual-dtor" }
+// { dg-do compile { target c++11 } }
 
 struct polyBase { virtual void f(); };
 
index ffceb79..16b223e 100644 (file)
@@ -3,5 +3,5 @@
 
 extern "C" int printf (const char *, ...);
 void f() {
-  printf("%lf", 0.0);          // { dg-warning "%lf" "" { target c++98 } }
+  printf("%lf", 0.0);          // { dg-warning "%lf" "" { target { ! c++11 } } }
 }
index f23e7d9..7ae0e23 100644 (file)
@@ -1,8 +1,8 @@
 // PR c++/13358: g++ should accept a long long constant sans LL suffix
 // if -Wno-long-long is in use
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target int32plus } 
-// { dg-options "-std=c++0x -pedantic-errors" }
+// { dg-options "-pedantic-errors" }
 
 
 void use_longlong ()
index b9a59ca..3aaeb85 100644 (file)
@@ -1,8 +1,8 @@
 // PR c++/13358: g++ should accept a long long constant sans LL suffix
 // if -Wno-long-long is in use.
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 // { dg-require-effective-target int32plus } 
-// { dg-options "-std=c++0x -pedantic-errors -Wlong-long" }
+// { dg-options "-pedantic-errors -Wlong-long" }
 
 
 void use_longlong ()
index d41c26b..e900c9f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble { target c++98 } }
+// { dg-do assemble { target { ! c++11 } } }
 // prms-id: 12475
 
 #include <limits.h>
index 5fd31a6..c9ee80f 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble { target c++98 } }
+// { dg-do assemble { target { ! c++11 } } }
 // GROUPS passed old-abort
 typedef __SIZE_TYPE__ size_t;
 typedef void (*RF_Ptr)(void *);
index 544d59b..f67602d 100644 (file)
@@ -5,7 +5,7 @@
 class Thing
 {
 public:
-      typedef enum { GOOD_THING, BAD_THING, } ThingType ; // { dg-error "" "comma" { target c++98 } }
+      typedef enum { GOOD_THING, BAD_THING, } ThingType ; // { dg-error "" "comma" { target { ! c++11 } } }
        Thing (ThingType type) : thingType (type) { }
        ~Thing () { }
 private:
@@ -15,7 +15,7 @@ private:
 class Group
 {
 public:
-      typedef enum { THIS_GROUP, THAT_GROUP, } GroupType ; // { dg-error "" "comma" { target c++98 } }
+      typedef enum { THIS_GROUP, THAT_GROUP, } GroupType ; // { dg-error "" "comma" { target { ! c++11 } } }
        Group (GroupType type) : groupType (type), groupCount (0) { }
        ~Group () { }
        void append (Thing* const &entry) { groupCount ++ ; }
index 9c10560..fda718b 100644 (file)
@@ -6,7 +6,7 @@ class X
     {
        oneMask = 0x0000FFFF,
        twoMask  = 0x000F0000,
-       thiMask = 0xFFF00000, // { dg-error "comma at end" "" { target c++98 } }
+       thiMask = 0xFFF00000, // { dg-error "comma at end" "" { target { ! c++11 } } }
     };
     unsigned int foo;
 
index bbdda4b..c48398e 100644 (file)
@@ -6,7 +6,7 @@ class foo1
    enum foo1_enum
    {
       ENUM1,
-      ENUM2, // { dg-error "comma at end" "" { target c++98 } }
+      ENUM2, // { dg-error "comma at end" "" { target { ! c++11 } } }
    };
 };
 
index d8a7d1b..6eb94da 100644 (file)
@@ -2,7 +2,7 @@
 // GROUPS passed enums
 enum fig {
     figgy,
-    pudding,  // { dg-error "comma at end" "" { target c++98 } }
+    pudding,  // { dg-error "comma at end" "" { target { ! c++11 } } }
 };
 
 class X {
index 209ea8c..d49629e 100644 (file)
@@ -5,7 +5,7 @@ class B {
    friend class A;
 
    enum {
-      bEnum = 1, // { dg-error "comma at end" "" { target c++98 } }
+      bEnum = 1, // { dg-error "comma at end" "" { target { ! c++11 } } }
    };
 
    int bArray[ bEnum ];
index 1b376dc..1f21f34 100644 (file)
@@ -2,4 +2,4 @@
 // GROUPS passed initialization
 // this should give an error in require_required_type about not
 // being allowed to have an initializer list in an argument list.
-int f(int a = {1});// { dg-error "" "" { target c++98 } }
+int f(int a = {1});// { dg-error "" "" { target { ! c++11 } } }
index d3d1ffd..7d82d94 100644 (file)
@@ -2,4 +2,4 @@
 // GROUPS passed initialization
 struct CharList { int i; };
 
-const CharList& terminals = { 1 }; // { dg-error "initializer lists" "" { target c++98 } }
+const CharList& terminals = { 1 }; // { dg-error "initializer lists" "" { target { ! c++11 } } }
index ea6ce4c..c4229a1 100644 (file)
@@ -4,7 +4,7 @@ class X {
 public:
     enum e {
        New // { dg-message "previous" }
-       ,   // { dg-error "comma at end" "" { target c++98 } }
+       ,   // { dg-error "comma at end" "" { target { ! c++11 } } }
     };
 
     static int New(int); // { dg-error "conflicts with a previous" }
index 605500e..e0ae2b8 100644 (file)
@@ -51,7 +51,7 @@ int main()
   // { dg-error "is initialized like a variable" "var" { target *-*-* } 50 }
     ;
   
-  if (int a[2] = {1, 2})       // { dg-error "extended init" "" { target c++98 } }
+  if (int a[2] = {1, 2})       // { dg-error "extended init" "" { target { ! c++11 } } }
     ;
 
 }
index 3cce388..bdcc494 100644 (file)
@@ -9,12 +9,12 @@ public:
 
 class bar {
 public:
-  foo f[3] = { 1, 2, 3 };   // works: f[0] = 1, f[1] = 2, f[2] = 3 // { dg-error "" "" { target c++98 } } ANSI C++ forbids initialization of member f;
+  foo f[3] = { 1, 2, 3 };   // works: f[0] = 1, f[1] = 2, f[2] = 3 // { dg-error "" "" { target { ! c++11 } } } ANSI C++ forbids initialization of member f;
 };
 
 class bar2 {
 public:
-      foo f[3] = { foo(1), foo(2), foo(3) }; // { dg-error "" "" { target c++98 } } ANSI C++ forbids initialization of member f;
+      foo f[3] = { foo(1), foo(2), foo(3) }; // { dg-error "" "" { target { ! c++11 } } } ANSI C++ forbids initialization of member f;
   // does not compile -- error: field initializer is not constant
 };
 
index 9e1a356..991e38d 100644 (file)
@@ -49,7 +49,7 @@ foo() {std::cout << "foo created" << std::endl; }
 };
 
 foo **f2;
-allocate2d(d1, d2, f2);// { dg-error "" "" { target c++98 } }
-ffree(d1, f2);// { dg-error "" "" { target c++98 } }
+allocate2d(d1, d2, f2);// { dg-error "" "" { target { ! c++11 } } }
+ffree(d1, f2);// { dg-error "" "" { target { ! c++11 } } }
 
 }
index acb4f46..e4abad2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble { target c++98 } }
+// { dg-do assemble { target { ! c++11 } } }
 // Test that we properly diagnose an attempt to use an anonymous class
 // in declaring an external function.
 
index 2fa2dec..8d90445 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble { target c++98 } }
+// { dg-do assemble { target { ! c++11 } } }
 typedef struct {
   int i;
 } *p;
index 974cd63..84756a1 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble { target c++98 } }
+// { dg-do assemble { target { ! c++11 } } }
 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>    
 extern "C" 
 {
index 450733f..c872057 100644 (file)
@@ -8,4 +8,4 @@ void f () {}
 
 // Check that the strlen declaration here is given internal linkage by
 // using it as a non-type template argument, and expecting an error.
-template void f<strlen>(); // { dg-error "" "" { target c++98 } } no matching template
+template void f<strlen>(); // { dg-error "" "" { target { ! c++11 } } } no matching template
index 3df78f0..3a03493 100644 (file)
@@ -8,5 +8,5 @@ typedef struct {
 } S;
 
 struct B: S{
-  using S::S;         // { dg-error "" "" { target c++98 } } no such field
+  using S::S;         // { dg-error "" "" { target { ! c++11 } } } no such field
 };
index 48bdbb0..20be9bb 100644 (file)
@@ -8,7 +8,7 @@ void fn(T)
 {
   enum tern { H, L, X, U };
 
-  vector<tern> ternvec; // { dg-error "" "" { target c++98 } } composed from a local type
+  vector<tern> ternvec; // { dg-error "" "" { target { ! c++11 } } } composed from a local type
 }
 
 template void fn(int);
index 1f53a75..6c535fc 100644 (file)
@@ -18,7 +18,7 @@ template int S<int>::t; // { dg-error "duplicate explicit instantiation" }
 template class S<double>;
 template class S<double>; // { dg-error "duplicate explicit instantiation" } 
 
-extern template void f(double); // { dg-error "extern" "" { target c++98 } }
+extern template void f(double); // { dg-error "extern" "" { target { ! c++11 } } }
 inline template class S<float>; // { dg-error "inline" } inline not allowed
 
 template <class T>
index 51a66fd..273bcab 100644 (file)
@@ -12,4 +12,4 @@ public:
 template<template<class> class>
 class Y {
 };
-Q::template X<int> x; // { dg-error "template" "" { target c++98 } }
+Q::template X<int> x; // { dg-error "template" "" { target { ! c++11 } } }
index 9c98514..1ceb99f 100644 (file)
@@ -7,5 +7,5 @@ struct A {
 int main ()
 {
   A a;
-  return a.template f (0); // { dg-error "template" "" { target c++98 } }
+  return a.template f (0); // { dg-error "template" "" { target { ! c++11 } } }
 }
index 9a53713..9f4bbe4 100644 (file)
@@ -27,8 +27,8 @@ int main() {
   h<(int A::*) &A::i>(); // { dg-error "" "" { xfail c++11 } }
   g<(void (A::*)()) &B::f>(); // { dg-error "" "" { xfail { c++11 && { aarch64*-*-* arm*-*-* mips*-*-* } } } }
   h<(int A::*) &B::j>(); // { dg-error "" } 
-  g<(void (A::*)()) 0>(); // { dg-error "" "" { target c++98 } }
-  h<(int A::*) 0>(); // { dg-error "" "" { target c++98 } }
+  g<(void (A::*)()) 0>(); // { dg-error "" "" { target { ! c++11 } } }
+  h<(int A::*) 0>(); // { dg-error "" "" { target { ! c++11 } } }
 
   return 0;
 }
index f664f54..41a0348 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble { target c++98 } }
+// { dg-do assemble { target { ! c++11 } } }
 
 template <class X, int n> X f (auto X (*x)[n]) { return (*x)[n/2]; }
 extern int i[30];
index b0c4f2f..fb45594 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble { target c++98 } }
+// { dg-do assemble { target { ! c++11 } } }
 
 template <class X, int n> X f (auto X (*x)[n]) { return (*x)[n/2]; }
 extern int i[30], i2[33];
index f8e92e6..24542c8 100644 (file)
@@ -43,9 +43,9 @@ proc g++-dg-runtest { testcases default-extra-flags } {
        # if there's a dg-options line.
        if ![search_for $test "-std=*++"] {
            if [search_for $test "dg-options"] {
-               set option_list { -std=gnu++98 -std=gnu++11 }
+               set option_list { -std=gnu++98 -std=gnu++11 -std=gnu++1y }
            } else {
-               set option_list { -std=c++98 -std=c++11 }
+               set option_list { -std=c++98 -std=c++11 -std=c++1y }
            }
        } else {
            set option_list { "" }
index 2addae8..bee8471 100644 (file)
@@ -5456,29 +5456,44 @@ proc check_effective_target_c++ { } {
  return 0
 }
 
-# Check which language standard is active by checking for the presence of
-# one of the C++11 -std flags.  This assumes that the default for the
-# compiler is C++98, and that there will never be multiple -std= arguments
-# on the command line.
-proc check_effective_target_c++11 { } {
+# Check whether the current active language standard supports the features
+# of C++11/C++1y by checking for the presence of one of the -std
+# flags.  This assumes that the default for the compiler is C++98, and that
+# there will never be multiple -std= arguments on the command line.
+proc check_effective_target_c++11_only { } {
     if ![check_effective_target_c++] {
        return 0
     }
     return [check-flags { { } { } { -std=c++0x -std=gnu++0x -std=c++11 -std=gnu++11 } }]
 }
+proc check_effective_target_c++11 { } {
+    if [check_effective_target_c++11_only] {
+       return 1
+    }
+    return [check_effective_target_c++1y]
+}
+proc check_effective_target_c++11_down { } {
+    if ![check_effective_target_c++] {
+       return 0
+    }
+    return ![check_effective_target_c++1y]
+}
 
-proc check_effective_target_c++1y { } {
+proc check_effective_target_c++1y_only { } {
     if ![check_effective_target_c++] {
        return 0
     }
-    return [check-flags { { } { } { -std=c++1y -std=gnu++1y } }]
+    return [check-flags { { } { } { -std=c++1y -std=gnu++1y -std=c++14 -std=gnu++14 } }]
+}
+proc check_effective_target_c++1y { } {
+    return [check_effective_target_c++1y_only]
 }
 
-proc check_effective_target_c++98 { } {
+proc check_effective_target_c++98_only { } {
     if ![check_effective_target_c++] {
        return 0
     }
-    return [check-flags { { } { } { } { -std=c++0x -std=gnu++0x -std=c++11 -std=gnu++11 -std=c++1y -std=gnu++1y } }]
+    return ![check_effective_target_c++11]
 }
 
 # Return 1 if expensive testcases should be run.