testsuite: Refer more consistently to C23 not C2X
Continuing the move to refer to C23 in place of C2X throughout the source tree, update testcase contents to use the "c23" or "gnu23" option names in place of the old "c2x" or "gnu2x" names, except for the few tests specifically intended to test the old names, and to refer to C23 in comments. This updates testcase *contents*; testcase naming (renaming c2x-* tests to c23-* and gnu2x-* tests to gnu23-*), with a few consequent changes to contents (where tests #include other tests, or refer to them by name in comments) is to be addressed separately. Bootstrapped with no regressions for x86_64-pc-linux-gnu. gcc/testsuite/ * c-c++-common/alias-1.c: Use "c23" or "gnu23" option names in place of "c2x" or "gnu2x" names, and refer to C23 in comments in place of C2X or C2x. * gcc.dg/Wformat-overflow1.c: Likewise. * gcc.dg/asm-scope-1.c: Likewise. * gcc.dg/atomic/c2x-stdatomic-lockfree-char8_t.c: Likewise. * gcc.dg/atomic/c2x-stdatomic-var-init-1.c: Likewise. * gcc.dg/atomic/gnu2x-stdatomic-lockfree-char8_t.c: Likewise. * gcc.dg/atomic/stdatomic-bitint-1.c: Likewise. * gcc.dg/atomic/stdatomic-bitint-2.c: Likewise. * gcc.dg/attr-assume-1.c: Likewise. * gcc.dg/attr-assume-2.c: Likewise. * gcc.dg/attr-assume-3.c: Likewise. * gcc.dg/attr-assume-4.c: Likewise. * gcc.dg/bitint-1.c: Likewise. * gcc.dg/bitint-10.c: Likewise. * gcc.dg/bitint-11.c: Likewise. * gcc.dg/bitint-12.c: Likewise. * gcc.dg/bitint-13.c: Likewise. * gcc.dg/bitint-14.c: Likewise. * gcc.dg/bitint-15.c: Likewise. * gcc.dg/bitint-16.c: Likewise. * gcc.dg/bitint-17.c: Likewise. * gcc.dg/bitint-18.c: Likewise. * gcc.dg/bitint-19.c: Likewise. * gcc.dg/bitint-2.c: Likewise. * gcc.dg/bitint-20.c: Likewise. * gcc.dg/bitint-21.c: Likewise. * gcc.dg/bitint-22.c: Likewise. * gcc.dg/bitint-23.c: Likewise. * gcc.dg/bitint-25.c: Likewise. * gcc.dg/bitint-28.c: Likewise. * gcc.dg/bitint-29.c: Likewise. * gcc.dg/bitint-3.c: Likewise. * gcc.dg/bitint-30.c: Likewise. * gcc.dg/bitint-31.c: Likewise. * gcc.dg/bitint-32.c: Likewise. * gcc.dg/bitint-34.c: Likewise. * gcc.dg/bitint-35.c: Likewise. * gcc.dg/bitint-36.c: Likewise. * gcc.dg/bitint-38.c: Likewise. * gcc.dg/bitint-39.c: Likewise. * gcc.dg/bitint-4.c: Likewise. * gcc.dg/bitint-5.c: Likewise. * gcc.dg/bitint-6.c: Likewise. * gcc.dg/bitint-7.c: Likewise. * gcc.dg/bitint-8.c: Likewise. * gcc.dg/bitint-9.c: Likewise. * gcc.dg/c11-attr-syntax-3.c: Likewise. * gcc.dg/c11-builtins-1.c: Likewise. * gcc.dg/c11-complit-1.c: Likewise. * gcc.dg/c11-complit-2.c: Likewise. * gcc.dg/c11-complit-3.c: Likewise. * gcc.dg/c11-digit-separators-1.c: Likewise. * gcc.dg/c11-empty-init-3.c: Likewise. * gcc.dg/c11-enum-1.c: Likewise. * gcc.dg/c11-enum-2.c: Likewise. * gcc.dg/c11-enum-3.c: Likewise. * gcc.dg/c11-enum-4.c: Likewise. * gcc.dg/c11-enum-5.c: Likewise. * gcc.dg/c11-enum-6.c: Likewise. * gcc.dg/c11-floatn-5.c: Likewise. * gcc.dg/c11-floatn-6.c: Likewise. * gcc.dg/c11-floatn-7.c: Likewise. * gcc.dg/c11-floatn-8.c: Likewise. * gcc.dg/c11-fordecl-3.c: Likewise. * gcc.dg/c11-fordecl-4.c: Likewise. * gcc.dg/c11-keywords-1.c: Likewise. * gcc.dg/c11-old-style-definition-1.c: Likewise. * gcc.dg/c11-old-style-definition-2.c: Likewise. * gcc.dg/c11-parm-omit-3.c: Likewise. * gcc.dg/c11-qual-1.c: Likewise. * gcc.dg/c11-static-assert-9.c: Likewise. * gcc.dg/c11-stdarg-3.c: Likewise. * gcc.dg/c11-unproto-1.c: Likewise. * gcc.dg/c11-unproto-2.c: Likewise. * gcc.dg/c11-utf8char-1.c: Likewise. * gcc.dg/c17-nullptr-2.c: Likewise. * gcc.dg/c2x-align-1.c: Likewise. * gcc.dg/c2x-align-6.c: Likewise. * gcc.dg/c2x-attr-deprecated-1.c: Likewise. * gcc.dg/c2x-attr-deprecated-2.c: Likewise. * gcc.dg/c2x-attr-deprecated-3.c: Likewise. * gcc.dg/c2x-attr-deprecated-4.c: Likewise. * gcc.dg/c2x-attr-fallthrough-1.c: Likewise. * gcc.dg/c2x-attr-fallthrough-2.c: Likewise. * gcc.dg/c2x-attr-fallthrough-3.c: Likewise. * gcc.dg/c2x-attr-fallthrough-4.c: Likewise. * gcc.dg/c2x-attr-fallthrough-5.c: Likewise. * gcc.dg/c2x-attr-fallthrough-6.c: Likewise. * gcc.dg/c2x-attr-maybe_unused-1.c: Likewise. * gcc.dg/c2x-attr-maybe_unused-2.c: Likewise. * gcc.dg/c2x-attr-maybe_unused-3.c: Likewise. * gcc.dg/c2x-attr-maybe_unused-4.c: Likewise. * gcc.dg/c2x-attr-nodiscard-1.c: Likewise. * gcc.dg/c2x-attr-nodiscard-2.c: Likewise. * gcc.dg/c2x-attr-nodiscard-3.c: Likewise. * gcc.dg/c2x-attr-nodiscard-4.c: Likewise. * gcc.dg/c2x-attr-noreturn-1.c: Likewise. * gcc.dg/c2x-attr-noreturn-2.c: Likewise. * gcc.dg/c2x-attr-noreturn-3.c: Likewise. * gcc.dg/c2x-attr-syntax-1.c: Likewise. * gcc.dg/c2x-attr-syntax-2.c: Likewise. * gcc.dg/c2x-attr-syntax-3.c: Likewise. * gcc.dg/c2x-attr-syntax-4.c: Likewise. * gcc.dg/c2x-attr-syntax-5.c: Likewise. * gcc.dg/c2x-attr-syntax-7.c: Likewise. * gcc.dg/c2x-auto-1.c: Likewise. * gcc.dg/c2x-auto-2.c: Likewise. * gcc.dg/c2x-auto-3.c: Likewise. * gcc.dg/c2x-auto-4.c: Likewise. * gcc.dg/c2x-binary-constants-1.c: Likewise. * gcc.dg/c2x-binary-constants-2.c: Likewise. * gcc.dg/c2x-binary-constants-3.c: Likewise. * gcc.dg/c2x-bool-1.c: Likewise. * gcc.dg/c2x-bool-2.c: Likewise. * gcc.dg/c2x-bool-limits-1.c: Likewise. * gcc.dg/c2x-builtins-1.c: Likewise. * gcc.dg/c2x-complit-1.c: Likewise. * gcc.dg/c2x-complit-2.c: Likewise. * gcc.dg/c2x-complit-3.c: Likewise. * gcc.dg/c2x-complit-4.c: Likewise. * gcc.dg/c2x-complit-5.c: Likewise. * gcc.dg/c2x-complit-6.c: Likewise. * gcc.dg/c2x-complit-7.c: Likewise. * gcc.dg/c2x-complit-8.c: Likewise. * gcc.dg/c2x-concat-1.c: Likewise. * gcc.dg/c2x-constexpr-1.c: Likewise. * gcc.dg/c2x-constexpr-2a.c: Likewise. * gcc.dg/c2x-constexpr-2b.c: Likewise. * gcc.dg/c2x-constexpr-3.c: Likewise. * gcc.dg/c2x-constexpr-4.c: Likewise. * gcc.dg/c2x-constexpr-5.c: Likewise. * gcc.dg/c2x-constexpr-6.c: Likewise. * gcc.dg/c2x-constexpr-7.c: Likewise. * gcc.dg/c2x-constexpr-8.c: Likewise. * gcc.dg/c2x-constexpr-9.c: Likewise. * gcc.dg/c2x-digit-separators-1.c: Likewise. * gcc.dg/c2x-digit-separators-2.c: Likewise. * gcc.dg/c2x-digit-separators-3.c: Likewise. * gcc.dg/c2x-empty-init-1.c: Likewise. * gcc.dg/c2x-empty-init-2.c: Likewise. * gcc.dg/c2x-empty-init-3.c: Likewise. * gcc.dg/c2x-enum-1.c: Likewise. * gcc.dg/c2x-enum-2.c: Likewise. * gcc.dg/c2x-enum-3.c: Likewise. * gcc.dg/c2x-enum-4.c: Likewise. * gcc.dg/c2x-enum-5.c: Likewise. * gcc.dg/c2x-enum-6.c: Likewise. * gcc.dg/c2x-enum-7.c: Likewise. * gcc.dg/c2x-enum-8.c: Likewise. * gcc.dg/c2x-float-1.c: Likewise. * gcc.dg/c2x-float-10.c: Likewise. * gcc.dg/c2x-float-11.c: Likewise. * gcc.dg/c2x-float-12.c: Likewise. * gcc.dg/c2x-float-13.c: Likewise. * gcc.dg/c2x-float-2.c: Likewise. * gcc.dg/c2x-float-3.c: Likewise. * gcc.dg/c2x-float-4.c: Likewise. * gcc.dg/c2x-float-5.c: Likewise. * gcc.dg/c2x-float-6.c: Likewise. * gcc.dg/c2x-float-7a.c: Likewise. * gcc.dg/c2x-float-7b.c: Likewise. * gcc.dg/c2x-float-7c.c: Likewise. * gcc.dg/c2x-float-8.c: Likewise. * gcc.dg/c2x-float-9.c: Likewise. * gcc.dg/c2x-float-no-dfp-1.c: Likewise. * gcc.dg/c2x-float-no-dfp-2.c: Likewise. * gcc.dg/c2x-float-no-dfp-3.c: Likewise. * gcc.dg/c2x-float-no-dfp-4.c: Likewise. * gcc.dg/c2x-floatn-1.c: Likewise. * gcc.dg/c2x-floatn-2.c: Likewise. * gcc.dg/c2x-floatn-3.c: Likewise. * gcc.dg/c2x-floatn-4.c: Likewise. * gcc.dg/c2x-floatn-5.c: Likewise. * gcc.dg/c2x-floatn-6.c: Likewise. * gcc.dg/c2x-floatn-7.c: Likewise. * gcc.dg/c2x-floatn-8.c: Likewise. * gcc.dg/c2x-fordecl-1.c: Likewise. * gcc.dg/c2x-fordecl-2.c: Likewise. * gcc.dg/c2x-fordecl-3.c: Likewise. * gcc.dg/c2x-fordecl-4.c: Likewise. * gcc.dg/c2x-has-c-attribute-1.c: Likewise. * gcc.dg/c2x-has-c-attribute-2.c: Likewise. * gcc.dg/c2x-has-c-attribute-3.c: Likewise. * gcc.dg/c2x-has-c-attribute-4.c: Likewise. * gcc.dg/c2x-labels-1.c: Likewise. * gcc.dg/c2x-labels-2.c: Likewise. * gcc.dg/c2x-labels-3.c: Likewise. * gcc.dg/c2x-limits-1.c: Likewise. * gcc.dg/c2x-no-dfp-1.c: Likewise. * gcc.dg/c2x-nullptr-1.c: Likewise. * gcc.dg/c2x-nullptr-2.c: Likewise. * gcc.dg/c2x-nullptr-3.c: Likewise. * gcc.dg/c2x-nullptr-4.c: Likewise. * gcc.dg/c2x-nullptr-5.c: Likewise. * gcc.dg/c2x-nullptr-6.c: Likewise. * gcc.dg/c2x-old-style-definition-1.c: Likewise. * gcc.dg/c2x-old-style-definition-2.c: Likewise. * gcc.dg/c2x-old-style-definition-3.c: Likewise. * gcc.dg/c2x-old-style-definition-4.c: Likewise. * gcc.dg/c2x-old-style-definition-5.c: Likewise. * gcc.dg/c2x-old-style-definition-6.c: Likewise. * gcc.dg/c2x-parm-omit-1.c: Likewise. * gcc.dg/c2x-parm-omit-2.c: Likewise. * gcc.dg/c2x-parm-omit-3.c: Likewise. * gcc.dg/c2x-parm-omit-4.c: Likewise. * gcc.dg/c2x-qual-1.c: Likewise. * gcc.dg/c2x-qual-2.c: Likewise. * gcc.dg/c2x-qual-3.c: Likewise. * gcc.dg/c2x-qual-4.c: Likewise. * gcc.dg/c2x-qual-5.c: Likewise. * gcc.dg/c2x-qual-6.c: Likewise. * gcc.dg/c2x-qual-7.c: Likewise. * gcc.dg/c2x-static-assert-1.c: Likewise. * gcc.dg/c2x-static-assert-2.c: Likewise. * gcc.dg/c2x-static-assert-3.c: Likewise. * gcc.dg/c2x-static-assert-4.c: Likewise. * gcc.dg/c2x-stdarg-1.c: Likewise. * gcc.dg/c2x-stdarg-2.c: Likewise. * gcc.dg/c2x-stdarg-3.c: Likewise. * gcc.dg/c2x-stdarg-4.c: Likewise. * gcc.dg/c2x-stdarg-5.c: Likewise. * gcc.dg/c2x-stdatomic-1.c: Likewise. * gcc.dg/c2x-stddef-1.c: Likewise. * gcc.dg/c2x-stdint-1.c: Likewise. * gcc.dg/c2x-thread-local-1.c: Likewise. * gcc.dg/c2x-thread-local-2.c: Likewise. * gcc.dg/c2x-typeof-1.c: Likewise. * gcc.dg/c2x-typeof-2.c: Likewise. * gcc.dg/c2x-typeof-3.c: Likewise. * gcc.dg/c2x-unproto-1.c: Likewise. * gcc.dg/c2x-unproto-2.c: Likewise. * gcc.dg/c2x-unproto-3.c: Likewise. * gcc.dg/c2x-unproto-4.c: Likewise. * gcc.dg/c2x-unreachable-1.c: Likewise. * gcc.dg/c2x-utf8char-1.c: Likewise. * gcc.dg/c2x-utf8char-2.c: Likewise. * gcc.dg/c2x-utf8char-3.c: Likewise. * gcc.dg/c2x-utf8str-type.c: Likewise. * gcc.dg/c2x-utf8str.c: Likewise. * gcc.dg/c90-auto-1.c: Likewise. * gcc.dg/c90-complit-2.c: Likewise. * gcc.dg/cpp/c11-warning-3.c: Likewise. * gcc.dg/cpp/c2x-elifdef-1.c: Likewise. * gcc.dg/cpp/c2x-elifdef-2.c: Likewise. * gcc.dg/cpp/c2x-scope-1.c: Likewise. * gcc.dg/cpp/c2x-scope-2.c: Likewise. * gcc.dg/cpp/c2x-trigraphs-1.c: Likewise. * gcc.dg/cpp/c2x-trigraphs-2.c: Likewise. * gcc.dg/cpp/c2x-ucn-1.c: Likewise. * gcc.dg/cpp/c2x-ucnid-1-utf8.c: Likewise. * gcc.dg/cpp/c2x-ucnid-1.c: Likewise. * gcc.dg/cpp/c2x-va-opt-1.c: Likewise. * gcc.dg/cpp/c2x-warning-1.c: Likewise. * gcc.dg/cpp/c2x-warning-2.c: Likewise. * gcc.dg/cpp/gnu11-warning-3.c: Likewise. * gcc.dg/cpp/gnu2x-warning-1.c: Likewise. * gcc.dg/cpp/gnu2x-warning-2.c: Likewise. * gcc.dg/cr-decimal-dig-2.c: Likewise. * gcc.dg/cr-decimal-dig-3.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d128-1.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d128-2.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d128-3.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d128-4.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d32-1.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d32-2.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d64-1.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d64-2.c: Likewise. * gcc.dg/dfp/bitint-1.c: Likewise. * gcc.dg/dfp/bitint-2.c: Likewise. * gcc.dg/dfp/bitint-3.c: Likewise. * gcc.dg/dfp/bitint-4.c: Likewise. * gcc.dg/dfp/bitint-5.c: Likewise. * gcc.dg/dfp/bitint-6.c: Likewise. * gcc.dg/dfp/bitint-7.c: Likewise. * gcc.dg/dfp/bitint-8.c: Likewise. * gcc.dg/dfp/c2x-builtins-dfp-1.c: Likewise. * gcc.dg/dfp/c2x-constants-1.c: Likewise. * gcc.dg/dfp/c2x-constants-2.c: Likewise. * gcc.dg/dfp/c2x-constexpr-dfp-1.c: Likewise. * gcc.dg/dfp/c2x-constexpr-dfp-2.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-1.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-2.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-3.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-4.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-5.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-6.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-7.c: Likewise. * gcc.dg/dfp/c2x-float-dfp-8.c: Likewise. * gcc.dg/dfp/c2x-keywords-1.c: Likewise. * gcc.dg/dfp/c2x-keywords-2.c: Likewise. * gcc.dg/dfp/tr24732-float-dfp-1.c: Likewise. * gcc.dg/dfp/ts18661-2-float-dfp-1.c: Likewise. * gcc.dg/fixed-point/bitint-1.c: Likewise. * gcc.dg/format/c11-printf-1.c: Likewise. * gcc.dg/format/c11-scanf-1.c: Likewise. * gcc.dg/format/c2x-dfp-printf-1.c: Likewise. * gcc.dg/format/c2x-dfp-scanf-1.c: Likewise. * gcc.dg/format/c2x-printf-1.c: Likewise. * gcc.dg/format/c2x-scanf-1.c: Likewise. * gcc.dg/format/c2x-strftime-1.c: Likewise. * gcc.dg/format/ext-10.c: Likewise. * gcc.dg/format/ext-9.c: Likewise. * gcc.dg/gnu11-typeof-2.c: Likewise. * gcc.dg/gnu2x-attr-syntax-1.c: Likewise. * gcc.dg/gnu2x-attr-syntax-2.c: Likewise. * gcc.dg/gnu2x-attrs-1.c: Likewise. * gcc.dg/gnu2x-attrs-2.c: Likewise. * gcc.dg/gnu2x-auto-1.c: Likewise. * gcc.dg/gnu2x-builtins-no-dfp-1.c: Likewise. * gcc.dg/gnu2x-complit-1.c: Likewise. * gcc.dg/gnu2x-complit-2.c: Likewise. * gcc.dg/gnu2x-constexpr-1.c: Likewise. * gcc.dg/gnu2x-empty-init-1.c: Likewise. * gcc.dg/gnu2x-empty-init-2.c: Likewise. * gcc.dg/gnu2x-enum-1.c: Likewise. * gcc.dg/gnu2x-static-assert-1.c: Likewise. * gcc.dg/gnu2x-stdarg-1.c: Likewise. * gcc.dg/gnu2x-typeof-1.c: Likewise. * gcc.dg/gnu2x-utf8char-1.c: Likewise. * gcc.dg/gnu2x-utf8str-type.c: Likewise. * gcc.dg/gnu2x-utf8str.c: Likewise. * gcc.dg/gomp/attrs-1.c: Likewise. * gcc.dg/gomp/attrs-10.c: Likewise. * gcc.dg/gomp/attrs-11.c: Likewise. * gcc.dg/gomp/attrs-12.c: Likewise. * gcc.dg/gomp/attrs-13.c: Likewise. * gcc.dg/gomp/attrs-14.c: Likewise. * gcc.dg/gomp/attrs-15.c: Likewise. * gcc.dg/gomp/attrs-16.c: Likewise. * gcc.dg/gomp/attrs-17.c: Likewise. * gcc.dg/gomp/attrs-18.c: Likewise. * gcc.dg/gomp/attrs-19.c: Likewise. * gcc.dg/gomp/attrs-2.c: Likewise. * gcc.dg/gomp/attrs-20.c: Likewise. * gcc.dg/gomp/attrs-21.c: Likewise. * gcc.dg/gomp/attrs-3.c: Likewise. * gcc.dg/gomp/attrs-4.c: Likewise. * gcc.dg/gomp/attrs-5.c: Likewise. * gcc.dg/gomp/attrs-6.c: Likewise. * gcc.dg/gomp/attrs-7.c: Likewise. * gcc.dg/gomp/attrs-8.c: Likewise. * gcc.dg/gomp/attrs-9.c: Likewise. * gcc.dg/limits-width-2.c: Likewise. * gcc.dg/qual-return-10.c: Likewise. * gcc.dg/qual-return-9.c: Likewise. * gcc.dg/sso-19.c: Likewise. * gcc.dg/stdckdint-1.c: Likewise. * gcc.dg/stdckdint-2.c: Likewise. * gcc.dg/stdint-width-2.c: Likewise. * gcc.dg/tm/attrs-1.c: Likewise. * gcc.dg/torture/bitint-1.c: Likewise. * gcc.dg/torture/bitint-10.c: Likewise. * gcc.dg/torture/bitint-11.c: Likewise. * gcc.dg/torture/bitint-12.c: Likewise. * gcc.dg/torture/bitint-13.c: Likewise. * gcc.dg/torture/bitint-14.c: Likewise. * gcc.dg/torture/bitint-15.c: Likewise. * gcc.dg/torture/bitint-16.c: Likewise. * gcc.dg/torture/bitint-17.c: Likewise. * gcc.dg/torture/bitint-18.c: Likewise. * gcc.dg/torture/bitint-19.c: Likewise. * gcc.dg/torture/bitint-2.c: Likewise. * gcc.dg/torture/bitint-20.c: Likewise. * gcc.dg/torture/bitint-21.c: Likewise. * gcc.dg/torture/bitint-22.c: Likewise. * gcc.dg/torture/bitint-23.c: Likewise. * gcc.dg/torture/bitint-24.c: Likewise. * gcc.dg/torture/bitint-25.c: Likewise. * gcc.dg/torture/bitint-26.c: Likewise. * gcc.dg/torture/bitint-27.c: Likewise. * gcc.dg/torture/bitint-28.c: Likewise. * gcc.dg/torture/bitint-29.c: Likewise. * gcc.dg/torture/bitint-3.c: Likewise. * gcc.dg/torture/bitint-30.c: Likewise. * gcc.dg/torture/bitint-31.c: Likewise. * gcc.dg/torture/bitint-32.c: Likewise. * gcc.dg/torture/bitint-33.c: Likewise. * gcc.dg/torture/bitint-34.c: Likewise. * gcc.dg/torture/bitint-35.c: Likewise. * gcc.dg/torture/bitint-36.c: Likewise. * gcc.dg/torture/bitint-37.c: Likewise. * gcc.dg/torture/bitint-38.c: Likewise. * gcc.dg/torture/bitint-39.c: Likewise. * gcc.dg/torture/bitint-4.c: Likewise. * gcc.dg/torture/bitint-40.c: Likewise. * gcc.dg/torture/bitint-41.c: Likewise. * gcc.dg/torture/bitint-42.c: Likewise. * gcc.dg/torture/bitint-5.c: Likewise. * gcc.dg/torture/bitint-6.c: Likewise. * gcc.dg/torture/bitint-7.c: Likewise. * gcc.dg/torture/bitint-8.c: Likewise. * gcc.dg/torture/bitint-9.c: Likewise. * gcc.dg/torture/builtin-fp-int-inexact-c2x.c: Likewise. * gcc.dg/torture/c2x-stdarg-split-1a.c: Likewise. * gcc.dg/torture/c2x-stdarg-split-1b.c: Likewise. * gcc.dg/torture/float128-nan-floath.c: Likewise. * gcc.dg/torture/float128x-nan-floath.c: Likewise. * gcc.dg/torture/float16-nan-floath.c: Likewise. * gcc.dg/torture/float32-nan-floath.c: Likewise. * gcc.dg/torture/float32x-nan-floath.c: Likewise. * gcc.dg/torture/float64-nan-floath.c: Likewise. * gcc.dg/torture/float64x-nan-floath.c: Likewise. * gcc.target/i386/excess-precision-11.c: Likewise. * gcc.target/i386/excess-precision-12.c: Likewise. * lib/target-supports.exp: Likewise. * objc.dg/attributes/gnu2x-attr-syntax-1.m: Likewise.
This commit is contained in:
parent
2b61b8063b
commit
54bac0ce69
406 changed files with 607 additions and 607 deletions
|
@ -2,7 +2,7 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -Wall" } */
|
||||
/* { dg-additional-options "-std=c++20" { target c++ } } */
|
||||
/* { dg-additional-options "-std=c2x" { target c } } */
|
||||
/* { dg-additional-options "-std=c23" { target c } } */
|
||||
|
||||
int f(int i)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
{ dg-do compile }
|
||||
{ dg-options "-Wformat-overflow -std=c2x" }
|
||||
{ dg-options "-Wformat-overflow -std=c23" }
|
||||
*/
|
||||
|
||||
extern int sprintf (char* restrict, const char* restrict, ...);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test :: token handling in asm. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=gnu2x" } */
|
||||
/* { dg-options "-std=gnu23" } */
|
||||
|
||||
void
|
||||
f (void)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test atomic_is_lock_free for char8_t. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#include <stdatomic.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test ATOMIC_VAR_INIT not in C2x. */
|
||||
/* Test ATOMIC_VAR_INIT not in C23. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#include <stdatomic.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Test atomic_is_lock_free for char8_t with -std=gnu2x. */
|
||||
/* Test atomic_is_lock_free for char8_t with -std=gnu23. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-std=gnu2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=gnu23 -pedantic-errors" } */
|
||||
|
||||
#include "c2x-stdatomic-lockfree-char8_t.c"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do run { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#include <stdatomic.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do run { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#include <stdatomic.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Portable assumptions */
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
|
||||
int
|
||||
f1 (int i)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Portable assumptions */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
|
||||
[[gnu::__assume__ (1)]] void f1 (void); /* { dg-warning "'assume' attribute not followed by ';'" } */
|
||||
/* { dg-warning "'assume' attribute ignored" "" { target *-*-* } .-1 } */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Portable assumptions */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
|
||||
void
|
||||
foo (int x)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR tree-optimization/107369 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -O1" } */
|
||||
/* { dg-options "-std=c23 -O1" } */
|
||||
|
||||
void
|
||||
foo (int x)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
|
||||
void
|
||||
foo (int x)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target { bitint && dfp } } } */
|
||||
/* { dg-options "-O2 -std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-O2 -std=c23 -pedantic-errors" } */
|
||||
|
||||
#if __BITINT_MAXWIDTH__ >= 129
|
||||
void
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-O2 -std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-O2 -std=c23 -pedantic-errors" } */
|
||||
|
||||
int
|
||||
foo (_BitInt(127) x, _BitInt(127) y)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-O2 -std=gnu2x -w" } */
|
||||
/* { dg-options "-O2 -std=gnu23 -w" } */
|
||||
|
||||
_BitInt(37)
|
||||
foo (_BitInt(37) x, _BitInt(37) y)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-O2 -std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-O2 -std=c23 -pedantic-errors" } */
|
||||
|
||||
#if __BITINT_MAXWIDTH__ >= 315
|
||||
_Bool
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint575 } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
enum A : _BitInt(15) { A0 = 0, A1 = 1 }; /* { dg-error "invalid 'enum' underlying type" } */
|
||||
enum B : unsigned _BitInt(575) { B0 = 0, B1 = 1 }; /* { dg-error "invalid 'enum' underlying type" } */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint575 } } */
|
||||
/* { dg-options "-std=gnu2x" } */
|
||||
/* { dg-options "-std=gnu23" } */
|
||||
|
||||
enum A : _BitInt(15) { A0 = 0, A1 = 1 }; /* { dg-error "invalid 'enum' underlying type" } */
|
||||
enum B : unsigned _BitInt(575) { B0 = 0, B1 = 1 }; /* { dg-error "invalid 'enum' underlying type" } */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-O2 -std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-O2 -std=c23 -pedantic-errors" } */
|
||||
|
||||
_BitInt(15) a;
|
||||
_BitInt(42) b;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-O2 -std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-O2 -std=c23 -pedantic-errors" } */
|
||||
|
||||
#define expr_has_type(e, t) _Generic (e, default : 0, t : 1)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
_Atomic _BitInt(15) a;
|
||||
_Atomic(_BitInt(15)) b;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=gnu2x" } */
|
||||
/* { dg-options "-std=gnu23" } */
|
||||
|
||||
#define expr_has_type(e, t) _Generic (e, default : 0, t : 1)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#define expr_has_type(e, t) _Generic (e, default : 0, t : 1)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=gnu2x" } */
|
||||
/* { dg-options "-std=gnu23" } */
|
||||
|
||||
void
|
||||
foo (_Complex int ci, _Complex long long cl)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=gnu2x" } */
|
||||
/* { dg-options "-std=gnu23" } */
|
||||
|
||||
#define IB __SIZEOF_INT__ * __CHAR_BIT__
|
||||
typedef _BitInt(IB) V1 __attribute__((vector_size (sizeof (_BitInt(IB))))); /* { dg-error "invalid vector type for attribute 'vector_size'" } */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// PR c/102989
|
||||
// { dg-do compile { target bitint } }
|
||||
// { dg-options "-std=c2x -pedantic-errors" }
|
||||
// { dg-options "-std=c23 -pedantic-errors" }
|
||||
|
||||
_BitInt(63) a;
|
||||
signed _BitInt(15) b;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// PR c/102989
|
||||
// { dg-do compile { target bitint } }
|
||||
// { dg-options "-std=c2x -pedantic-errors -Wc11-c2x-compat" }
|
||||
// { dg-options "-std=c23 -pedantic-errors -Wc11-c23-compat" }
|
||||
|
||||
_BitInt(63) a; /* { dg-warning "ISO C does not support '_BitInt\\\(63\\\)' before C23" } */
|
||||
signed _BitInt(15) b; /* { dg-warning "ISO C does not support 'signed _BitInt\\\(15\\\)' before C23" } */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// PR c/102989
|
||||
// { dg-do compile { target bitint } }
|
||||
// { dg-options "-std=c11 -Wno-c11-c2x-compat -pedantic-errors" }
|
||||
// { dg-options "-std=c11 -Wno-c11-c23-compat -pedantic-errors" }
|
||||
|
||||
_BitInt(63) a;
|
||||
signed _BitInt(15) b;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target fenv_exceptions } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
/* { dg-add-options ieee } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target fenv_exceptions } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
/* { dg-add-options ieee } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
_BitInt(32) a, b = 2147483647wb;
|
||||
_BitInt(64) c, d = 9223372036854775807wb;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target fenv_exceptions } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
/* { dg-add-options ieee } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target fenv } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
/* { dg-add-options ieee } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* PR c/102989 */
|
||||
/* Test that -funsigned-bitfields doesn't affect _BitInt bit-fields which are always signed. */
|
||||
/* { dg-do run { target bitint } } */
|
||||
/* { dg-options "-std=c2x -funsigned-bitfields" } */
|
||||
/* { dg-options "-std=c23 -funsigned-bitfields" } */
|
||||
|
||||
struct S { _BitInt(22) a : 7; signed _BitInt(22) b : 7; unsigned _BitInt(22) c : 7; } s;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target { bitint && { float32 && int32 } } } } */
|
||||
/* { dg-options "-std=c2x -Wconversion -Wfloat-conversion" } */
|
||||
/* { dg-options "-std=c23 -Wconversion -Wfloat-conversion" } */
|
||||
/* { dg-add-options float32 } */
|
||||
|
||||
void
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target { bitint } } } */
|
||||
/* { dg-options "-std=c2x -Wint-in-bool-context -Waddress -Wpointer-to-int-cast -Wint-to-pointer-cast -Wint-conversion -Wshift-negative-value -Wshift-count-overflow -Wdiv-by-zero" } */
|
||||
/* { dg-options "-std=c23 -Wint-in-bool-context -Waddress -Wpointer-to-int-cast -Wint-to-pointer-cast -Wint-conversion -Wshift-negative-value -Wshift-count-overflow -Wdiv-by-zero" } */
|
||||
|
||||
extern char *ax[];
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do run { target { bitint } } } */
|
||||
/* { dg-options "-std=c2x" } */
|
||||
/* { dg-options "-std=c23" } */
|
||||
|
||||
#if __BITINT_MAXWIDTH__ >= 16319
|
||||
constexpr unsigned _BitInt(16319) a = 468098567701677261276215481936770442254383643766995378241600227179396283432916865881332215867106489159251577495372085663487092317743244770597287633199005374998455333587280357490149993101811392051483761495987108264964738337118155155862715438910721661230332533185335581757600511846854115932637261969633134365868695363914570578110064471868475841348589366933645410987699979080140212849909081188170910464967486231358935212897096260626033055536141835599284498474737858487658470115144771923114826312283863035503700600141440724426364699636330240414271275626021294939422483250619629005959992243418661230122132667769781183790338759345884903821695590991577228520523725302048215447841573113840811593638413425054938213262961448317898574140533090004992732688525115004782973893244091427000396890427152225308661078954671066069234453757593181753900865203439035402480306413572239610467142591920809187367438071170100969567440044691427487959785637338381651309916782063670286046547585240837892307170928849485877186793280707600840866783471799148179250818387716183127323346199533387463363442356218803779697005759324410376476855222420876262425985571982818180353870410149824214544313013285199544193496624223219986402944849622489422007678564946174797892795089330899535624727777525330789492703574564112252955147770942929761545604350869404246558274752353510370157229485004402131043153454290397929387276374054938578976878606467217359398684275050519104413914286024106808116340712273059427362293703151355498336213170698894448405369398757188523160460292714875857879968173578328191358215972493513271297875634400793301929250052822258636015650857683023900709845410838487936778533250407886180954576046340697908584020951295048844938047865657029072850797442976146895294184993736999505485665742811313795405530674199848055802759901786376822069529342971261963119332476504064285869362049662083405789828433132154933242817432809415810548180658750393692272729586232842065658490971201927780014258815333115459695117942273551876646844821076723664040282772834511419891351278169017103987094803829594286352340468346618726088781492626816188657331359104171819822673805856317828499039088088223137258297373929043307673570090396947789598799922928643843532617012164811074618881774622628943539037974883812689130801860915090035870244061005819418130068390986470314677853605080103313411837904358287837401546257413240466939893527508931541065241929872307203876443882106193262544652290132364691671910332006127864146991404015366683569317248057949596070354929361158326955551600236075268435044105880162798380799161607987365282458662031599096921825176202707890730023698706855762932691688259365358964076595824577775275991183149118372047206055118463112864604063853894820407249837871368934941438119680605528546887256934334246075596746410297954458632358171428714141820918183384435681332379317541048252391710712196623406338702061195213724569303285402242853671386113148211535691685461836458295037538034378318055108240082414441205300401526732399959228346926528586852743389490978734787926721999855388794711837164423007719626109179005466113706450765269687580819822772189301084503627297389675134228222337286867641110511061980231247884533492442898936743429641958314135329073406495776369208158032115883850691010569048983941126771477990976092252391972812691669847446798507244106121667885423025613769258102773855537509733295805013313937402282804897213847221072647111605172349464564089914906493508133855389627177663426057763252086286325343811254757681803068276278048757997425284334713190226818463023074461900176958010055572434983135171145365242339273326984465181064287264645470832091115100640584104375577304056951969456200138485313560009272338228103637763863289261673258726736753407044143664079479496972580560534494806170810469304773005873590626280072387999668522546747985701599613975101188543857852141559251634058676718308000324869809628199442681565615662912626022796064414496106344236431285697688357707992989966561557171729972093533007476947862215922583204811189015550505642082475400647639520782187776825395598257421714106473869797642678266380755873356747812273977691604147842741151722919464734890326772594979022403228191075586910464204870254674290437668861177639713112762996390246102030994917186957826982084194156870398312336059100521566034092740694642613192909850644003933745129291062576341213874815510099835708723355432970090139671120232910747665906191360160259512198160849784197597300106223945960886603127136037120000864968668651452411048372895607382907494278810971475663944948791458618662250238375166523484847507342040066801856222328988662049579299600545682490412754483621051190231623196265549391964259780178070495642538883789503379406531279338866955157646654913405181879254189185904298325865503395688786311067669273609670603076582607253527084977744533187145642686236350165593980428575119329911921382240780504527422630654086941060242757131313184709635181001199631726283364158943337968797uwb;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
_BitInt(2)
|
||||
foo (_BitInt(2) x, _BitInt(15) y)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
int *q, *r, *s;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#if __BITINT_MAXWIDTH__ >= 257
|
||||
void
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target bitint } } */
|
||||
/* { dg-options "-O2 -std=c2x -Wno-uninitialized" } */
|
||||
/* { dg-options "-O2 -std=c23 -Wno-uninitialized" } */
|
||||
|
||||
#if __BITINT_MAXWIDTH__ >= 135
|
||||
_BitInt(135)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* PR c/102989 */
|
||||
/* { dg-do compile { target { bitint && exceptions } } } */
|
||||
/* { dg-options "-O2 -std=gnu2x -fnon-call-exceptions -fexceptions" } */
|
||||
/* { dg-options "-O2 -std=gnu23 -fnon-call-exceptions -fexceptions" } */
|
||||
|
||||
__attribute__((noipa)) void
|
||||
baz (int *p)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test C2x attribute syntax: rejected in C11, but warning disabled
|
||||
with -Wno-c11-c2x-compat. */
|
||||
/* Test C23 attribute syntax: rejected in C11, but warning disabled
|
||||
with -Wno-c11-c23-compat. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c23-compat" } */
|
||||
|
||||
[[]];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C11 built-in functions: test functions new in C2x are not
|
||||
/* Test C11 built-in functions: test functions new in C23 are not
|
||||
declared as built-in for C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11" } */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x storage class specifiers in compound literals not permitted for
|
||||
/* Test C23 storage class specifiers in compound literals not permitted for
|
||||
C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x storage class specifiers in compound literals not permitted for
|
||||
/* Test C23 storage class specifiers in compound literals not permitted for
|
||||
C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic" } */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test C2x storage class specifiers in compound literals not permitted for
|
||||
C11, but -Wno-c11-c2x-compat disables the -pedantic diagnostic for that. */
|
||||
/* Test C23 storage class specifiers in compound literals not permitted for
|
||||
C11, but -Wno-c11-c23-compat disables the -pedantic diagnostic for that. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c23-compat" } */
|
||||
|
||||
int *ps = &(static int) { 1 };
|
||||
int ss = sizeof (static int) { 1 };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x digit separators not in C11. */
|
||||
/* Test C23 digit separators not in C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C11 does not support empty initializers. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -Wc11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -Wc11-c23-compat" } */
|
||||
|
||||
struct s { int a; };
|
||||
struct s s = {}; /* { dg-warning "empty initializer" } */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x enumerations with values not representable in int are diagnosed for
|
||||
/* Test C23 enumerations with values not representable in int are diagnosed for
|
||||
C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x enumerations with values not representable in int are diagnosed for
|
||||
/* Test C23 enumerations with values not representable in int are diagnosed for
|
||||
C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic" } */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test C2x enumerations with values not representable in int are not diagnosed
|
||||
for C11 with -pedantic-errors -Wno-c11-c2x-compat. */
|
||||
/* Test C23 enumerations with values not representable in int are not diagnosed
|
||||
for C11 with -pedantic-errors -Wno-c11-c23-compat. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c23-compat" } */
|
||||
|
||||
enum e1 { e1a = -__LONG_LONG_MAX__ - 1 };
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x enumerations with fixed underlying type are diagnosed for C11. */
|
||||
/* Test C23 enumerations with fixed underlying type are diagnosed for C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x enumerations with fixed underlying type are diagnosed for C11. */
|
||||
/* Test C23 enumerations with fixed underlying type are diagnosed for C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic" } */
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test C2x enumerations with fixed underlying type are not diagnosed for C11
|
||||
with -pedantic-errors -Wno-c11-c2x-compat. */
|
||||
/* Test C23 enumerations with fixed underlying type are not diagnosed for C11
|
||||
with -pedantic-errors -Wno-c11-c23-compat. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c23-compat" } */
|
||||
|
||||
enum e1 : int;
|
||||
enum e2 : short { A };
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -Wc11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -Wc11-c23-compat" } */
|
||||
/* { dg-add-options float32 } */
|
||||
/* { dg-add-options float64 } */
|
||||
/* { dg-add-options float32x } */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -Wc11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -Wc11-c23-compat" } */
|
||||
/* { dg-add-options float128 } */
|
||||
/* { dg-require-effective-target float128 } */
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -Wc11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -Wc11-c23-compat" } */
|
||||
/* { dg-add-options float16 } */
|
||||
/* { dg-require-effective-target float16 } */
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -Wc11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -Wc11-c23-compat" } */
|
||||
/* { dg-add-options float64x } */
|
||||
/* { dg-require-effective-target float64x } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test restrictions on the kind of declarations permitted in for loops removed
|
||||
in C2X, and thus with -std=c11 -pedantic -Wno-c11-c2x-compat. */
|
||||
in C23, and thus with -std=c11 -pedantic -Wno-c11-c23-compat. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c23-compat" } */
|
||||
|
||||
#include "c99-fordecl-2.c"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test restrictions on the kind of declarations permitted in for loops removed
|
||||
in C2X, and thus with -std=c11 -pedantic -Wno-c11-c2x-compat. */
|
||||
in C23, and thus with -std=c11 -pedantic -Wno-c11-c23-compat. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c23-compat" } */
|
||||
|
||||
#include "c99-fordecl-3.c"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test new C2x keywords not keywords in C11. */
|
||||
/* Test new C23 keywords not keywords in C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test old-style function definitions not in C2x: allowed in C11. */
|
||||
/* Test old-style function definitions not in C23: allowed in C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test old-style function definitions not in C2x: () does not give
|
||||
/* Test old-style function definitions not in C23: () does not give
|
||||
type with a prototype for older standards. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11" } */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Test omitted parameter names not in C11: -pedantic -Wno-c11-c2x-compat. */
|
||||
/* Test omitted parameter names not in C11: -pedantic -Wno-c11-c23-compat. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c23-compat" } */
|
||||
|
||||
void f (int) { }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test that qualifiers are lost in tertiary operator for pointers to arrays before C2X, PR98397 */
|
||||
/* Test that qualifiers are lost in tertiary operator for pointers to arrays before C23, PR98397 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-discarded-array-qualifiers" } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C11 static assertions. Omitting the string not supported, but
|
||||
-Wno-c11-c2x-compat disables the -pedantic diagnostic for that. */
|
||||
-Wno-c11-c23-compat disables the -pedantic diagnostic for that. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic -Wno-c11-c23-compat" } */
|
||||
|
||||
_Static_assert (1);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test variadic functions with no named parameters not supported in C11, but
|
||||
diagnostic disabled with -Wno-c11-c2x-compat. */
|
||||
diagnostic disabled with -Wno-c11-c23-compat. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c2x-compat" } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c23-compat" } */
|
||||
|
||||
int f (...);
|
||||
int g (int (...));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test compatibility of unprototyped and prototyped function types (C2x made
|
||||
/* Test compatibility of unprototyped and prototyped function types (C23 made
|
||||
the case of types affected by default argument promotions compatible, before
|
||||
removing unprototyped functions completely). Test affected usages are not
|
||||
accepted for C11. */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test compatibility of unprototyped and prototyped function types (C2x made
|
||||
/* Test compatibility of unprototyped and prototyped function types (C23 made
|
||||
the case of types affected by default argument promotions compatible, before
|
||||
removing unprototyped functions completely). Test always-invalid-in-C2x
|
||||
removing unprototyped functions completely). Test always-invalid-in-C23
|
||||
usages, in C11 mode. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test C2x UTF-8 characters. Test not accepted for C11. */
|
||||
/* Test C23 UTF-8 characters. Test not accepted for C11. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c11 -pedantic-errors" } */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Test that we don't predefine `nullptr' pre-C2X. */
|
||||
/* Test that we don't predefine `nullptr' pre-C23. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c17 -pedantic-errors" } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x alignment support. Test valid code. */
|
||||
/* Test C23 alignment support. Test valid code. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x alignof returning minimum alignment for a type. */
|
||||
/* Test C23 alignof returning minimum alignment for a type. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
#define _Alignas alignas
|
||||
#define _Alignof alignof
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x deprecated attribute: valid uses. */
|
||||
/* Test C23 deprecated attribute: valid uses. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
/* Similar to tests from gnu2x-attrs-1.c, but using the standard
|
||||
attribute instead of gnu::deprecated, and sometimes using
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x deprecated attribute: invalid contexts. */
|
||||
/* Test C23 deprecated attribute: invalid contexts. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
/* This attribute is not valid in most cases on types other than their
|
||||
definitions, or on labels, or on statements, or as an
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x deprecated attribute: invalid syntax. */
|
||||
/* Test C23 deprecated attribute: invalid syntax. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[deprecated()]] int a; /* { dg-error "parentheses must be omitted if attribute argument list is empty" } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x deprecated attribute: duplicates (allowed after N2557). */
|
||||
/* Test C23 deprecated attribute: duplicates (allowed after N2557). */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[deprecated, __deprecated__]] int a;
|
||||
[[__deprecated__, deprecated("message")]] int b;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x attribute syntax. Valid use of fallthrough attribute. */
|
||||
/* Test C23 attribute syntax. Valid use of fallthrough attribute. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors -Wextra" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors -Wextra" } */
|
||||
|
||||
int
|
||||
f (int a, int c)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x attribute syntax. Invalid use of fallthrough attribute. */
|
||||
/* Test C23 attribute syntax. Invalid use of fallthrough attribute. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors -Wextra" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors -Wextra" } */
|
||||
|
||||
[[fallthrough]]; /* { dg-error "'fallthrough' attribute at top level" } */
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test C2x attribute syntax. Invalid use of fallthrough attribute
|
||||
/* Test C23 attribute syntax. Invalid use of fallthrough attribute
|
||||
outside switch. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors -Wextra" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors -Wextra" } */
|
||||
|
||||
int
|
||||
f (int a)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x fallthrough attribute: duplicates (allowed after N2557). */
|
||||
/* Test C23 fallthrough attribute: duplicates (allowed after N2557). */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
int
|
||||
f (int a)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x fallthrough attribute: mixtures with other attributes. */
|
||||
/* Test C23 fallthrough attribute: mixtures with other attributes. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
/* Use of other standard attributes together with "fallthrough" goes
|
||||
through a different path to diagnosing ignored attributes from that
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test C2x attribute syntax. Invalid use of fallthrough attribute in
|
||||
/* Test C23 attribute syntax. Invalid use of fallthrough attribute in
|
||||
bad context inside switch. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors -Wextra" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors -Wextra" } */
|
||||
|
||||
int
|
||||
f (int a)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x maybe_unused attribute: valid uses. */
|
||||
/* Test C23 maybe_unused attribute: valid uses. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors -Wall -Wextra -Wunused" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors -Wall -Wextra -Wunused" } */
|
||||
|
||||
[[maybe_unused]] static void f1 (void) {}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x maybe_unused attribute: invalid contexts. */
|
||||
/* Test C23 maybe_unused attribute: invalid contexts. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
/* This attribute is not valid in most cases on types other than their
|
||||
definitions, or on statements, or as an attribute-declaration. */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x maybe_unused attribute: invalid syntax. */
|
||||
/* Test C23 maybe_unused attribute: invalid syntax. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[maybe_unused()]] int a; /* { dg-error "does not take any arguments" } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x maybe_unused attribute: duplicates (allowed after N2557). */
|
||||
/* Test C23 maybe_unused attribute: duplicates (allowed after N2557). */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[maybe_unused, __maybe_unused__]] int a;
|
||||
[[__maybe_unused__, maybe_unused]] int b;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x deprecated attribute: valid uses. */
|
||||
/* Test C23 deprecated attribute: valid uses. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[nodiscard]] int c1 (void); /* { dg-message "declared here" } */
|
||||
[[__nodiscard__ ("some reason")]] int c2 (void); /* { dg-message "declared here" } */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x nodiscard attribute: invalid contexts. */
|
||||
/* Test C23 nodiscard attribute: invalid contexts. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
/* This attribute is not valid on types other than their definitions,
|
||||
or on declarations other than function declarations, or on
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x nodiscard attribute: invalid syntax. */
|
||||
/* Test C23 nodiscard attribute: invalid syntax. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[nodiscard()]] int a (void); /* { dg-error "parentheses must be omitted if attribute argument list is empty" } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x nodiscard attribute: duplicates (allowed after N2557). */
|
||||
/* Test C23 nodiscard attribute: duplicates (allowed after N2557). */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[nodiscard, __nodiscard__]] int f (void);
|
||||
[[__nodiscard__, nodiscard("message")]] int g (void);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x noreturn attribute: valid uses. */
|
||||
/* Test C23 noreturn attribute: valid uses. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[noreturn]] void exit (int);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x noreturn attribute: invalid contexts. */
|
||||
/* Test C23 noreturn attribute: invalid contexts. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[noreturn]]; /* { dg-error "ignored" } */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Test C2x noreturn attribute: invalid syntax. */
|
||||
/* Test C23 noreturn attribute: invalid syntax. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[[noreturn()]] void a(); /* { dg-error "does not take any arguments" } */
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Test C2x attribute syntax. Basic tests of valid uses of empty
|
||||
/* Test C23 attribute syntax. Basic tests of valid uses of empty
|
||||
attributes. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=c2x -pedantic-errors" } */
|
||||
/* { dg-options "-std=c23 -pedantic-errors" } */
|
||||
|
||||
[ [ ] ] [[]];
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue