blob: 9ea1623880445ac0bf4ecb8dd70dd2a7c17c2a42 [file] [log] [blame]
 // PR c++/50043 // { dg-do compile { target c++11 } } // { dg-options "-Wno-terminate" } struct True1 {}; struct True2 { ~True2(); }; struct True3 { ~True3(){ throw 0; } }; struct False { ~False() noexcept(false); }; template struct A : Base { }; template struct B { Member mem; }; template struct C : Base { Member mem; }; #define SA(X) static_assert(X, #X) SA( noexcept(True1())); SA( noexcept(True2())); SA( noexcept(True3())); SA(!noexcept(False())); SA( noexcept(A())); SA( noexcept(A())); SA( noexcept(A())); SA(!noexcept(A())); SA( noexcept(B())); SA( noexcept(B())); SA( noexcept(B())); SA(!noexcept(B())); SA( noexcept(C())); SA( noexcept(C())); SA( noexcept(C())); SA( noexcept(C())); SA( noexcept(C())); SA( noexcept(C())); SA(!noexcept(C())); SA(!noexcept(C())); SA(!noexcept(C())); SA(!noexcept(C())); SA(!noexcept(C())); SA(!noexcept(C()));
{"ft_lang_label":"__label__en","ft_lang_prob":0.5090503,"math_prob":0.9571117,"size":1193,"snap":"2022-40-2023-06","text_gpt3_token_len":405,"char_repetition_ratio":0.32632464,"word_repetition_ratio":0.016260162,"special_character_ratio":0.43587595,"punctuation_ratio":0.27477476,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99948174,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-03T11:36:23Z\",\"WARC-Record-ID\":\"<urn:uuid:9847004f-d029-48e9-bdd8-1266218eb8f5>\",\"Content-Length\":\"25465\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f923a6d7-c311-44a0-9cb4-2805743394db>\",\"WARC-Concurrent-To\":\"<urn:uuid:a8b81d7c-949b-4c95-b9f2-6972459c1b7f>\",\"WARC-IP-Address\":\"142.251.16.82\",\"WARC-Target-URI\":\"https://gnu.googlesource.com/gcc/+/1ba7adabf29eb671e418692fad076ea6edd08e3d/gcc/testsuite/g++.dg/cpp0x/noexcept17.C\",\"WARC-Payload-Digest\":\"sha1:6SXKF2E7CHHPBFBOUAXBBLCM74SCLE4J\",\"WARC-Block-Digest\":\"sha1:QIQQXGFJQZAWGNGN5ROFAU27OZHHT45S\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337415.12_warc_CC-MAIN-20221003101805-20221003131805-00311.warc.gz\"}"}