diff --git a/src/Changes b/src/Changes index ef7a906913..44092898f3 100644 --- a/src/Changes +++ b/src/Changes @@ -1,5 +1,24 @@ Version 7.1 +10/8/26 [GH #182] + "GCC diagnostic" pragmas + +The "GCC diagnostic" pragmas were not recognized, so in GNU modes each one +was given an "unrecognized GCC pragma" warning. For example, with --g++: + + #pragma GCC diagnostic push // Previously warned about. + #pragma GCC diagnostic ignored "-Wunused-parameter" + int f(int unused) { return 0; } + #pragma GCC diagnostic pop + +This is now fixed. The "error", "warning", and "ignored" forms, the "push" +and "pop" forms (when emulating GCC 4.6 or later), the "ignored_attributes" +form (when emulating GCC 13 or later), and the "fatal" form (when emulating +clang) are accepted without a warning, to match the behavior of those +compilers. A missing option string is still diagnosed. The pragmas have no +effect on the front end's own diagnostics. + + 10/7/26 [GH #176] C-generating back end: always_inline attribute and inlined setjmp calls diff --git a/src/il_def.h b/src/il_def.h index b063cb1ec2..71a9a43966 100644 --- a/src/il_def.h +++ b/src/il_def.h @@ -6619,6 +6619,7 @@ enum a_gcc_pragma_kind : a_byte { gcc_pk_push_options, /* #pragma GCC push_options */ gcc_pk_pop_options, /* #pragma GCC pop_options */ gcc_pk_reset_options, /* #pragma GCC reset_options */ + gcc_pk_diagnostic, /* #pragma GCC diagnostic ... */ gcc_pk_last }; diff --git a/src/preproc.c b/src/preproc.c index a5cb83b923..8a68ae7a2b 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -4258,6 +4258,57 @@ kind indicates which of the above is being processed. } /* process_gnu_options_pragma */ +static a_boolean process_gnu_diagnostic_pragma(a_pending_pragma_ptr ppp) +/* +Handle + #pragma GCC diagnostic push + #pragma GCC diagnostic pop + #pragma GCC diagnostic kind "option" + +kind is recognized for: "error", "warning", "ignored", "fatal" (clang only), +or "ignored_attributes" (for GCC 13 and later). + +"option" after kind is: an unchecked plain char string literal of type + +These pragmas control the warnings issued by the GCC or clang in the backend. +Here, they are only accepted, and do not affect the diagnostics issued by the +front end. To match the behavior of GCC, any text following the pragma is +ignored. Return FALSE if the pragma is not a form recognized by the compiler +being emulated. +*/ +{ + a_boolean recognized = FALSE; + + /* Skip the "diagnostic" identifier. */ + (void)get_token(); + if (curr_token == tok_identifier) { + a_const_char *str = locator_for_curr_id.symbol_header->identifier; + if (gnu_version >= 40600 && + (strcmp(str, "push") == 0 || strcmp(str, "pop") == 0)) { + recognized = TRUE; + } else if (strcmp(str, "error") == 0 || + strcmp(str, "warning") == 0 || + strcmp(str, "ignored") == 0 || + (clang_mode && strcmp(str, "fatal") == 0) || + (gnu_version >= 130000 && + strcmp(str, "ignored_attributes") == 0)) { + recognized = TRUE; + (void)get_token(); + if (curr_token != tok_string_literal || + !is_normal_character_kind(const_for_curr_token.character_kind)) { + /* The option (or attribute list) is missing. Only a string literal + of plain char type is accepted. */ + pos_warning(ec_exp_string_literal, &error_position); + } /* if */ + } /* if */ + } /* if */ + if (recognized) { + ppp->variant.gcc.kind = (a_gcc_pragma_kind)gcc_pk_diagnostic; + } /* if */ + return recognized; +} /* process_gnu_diagnostic_pragma */ + + void gcc_pragma(a_pending_pragma_ptr ppp) /* Process a "#pragma GCC ..." construct. @@ -4289,6 +4340,9 @@ Process a "#pragma GCC ..." construct. process_gnu_options_pragma(ppp, (a_gcc_pragma_kind)gcc_pk_pop_options); } else if (gnu_version >= 40400 && strcmp(str, "reset_options") == 0) { process_gnu_options_pragma(ppp, (a_gcc_pragma_kind)gcc_pk_reset_options); + } else if (strcmp(str, "diagnostic") == 0) { + ignore_in_back_end = FALSE; + recognized = process_gnu_diagnostic_pragma(ppp); #if GNU_VECTOR_TYPES_ALLOWED && BUILTIN_FUNCTIONS_ENABLED } else if (target_is_arm_based() && target_is_64_bits() && strcmp(str, "aarch64") == 0) { diff --git a/tests/tests/changes/.EDGcpfe16990.rto/default.1.1.txt b/tests/tests/changes/.EDGcpfe16990.rto/default.1.1.txt index cc74f19a32..57a2ab5782 100644 --- a/tests/tests/changes/.EDGcpfe16990.rto/default.1.1.txt +++ b/tests/tests/changes/.EDGcpfe16990.rto/default.1.1.txt @@ -1,9 +1 @@ fe_only -DTEST_NUMBER=1 --g++ Test_name.c -"Test_name.c", line 13: warning: unrecognized GCC pragma - _Pragma ("GCC diagnostic push") - ^ - -"Test_name.c", line 14: warning: unrecognized GCC pragma - _Pragma ("GCC diagnostic pop") - ^ - diff --git a/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/default.1.1.txt b/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/default.1.1.txt index 294ab70742..a02a0eeec8 100644 --- a/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/default.1.1.txt +++ b/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/default.1.1.txt @@ -23,27 +23,3 @@ fe_only -DTEST_NUMBER=1 --clang -e 200 --no_wrap_diagnostics --clang_version 999 #pragma clang diagnostic pop ^ -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Wall" - ^ - -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wall" - ^ - -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wall" - ^ - -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic fatal "-Wall" - ^ - -"Test_name.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_32_cp.1.1.txt index cd384663bf..b3bbf21cfb 100644 --- a/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_32_cp.1.1.txt @@ -1,25 +1 @@ fe_only -DTEST_NUMBER=1 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Wall" - ^ - -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wall" - ^ - -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wall" - ^ - -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic fatal "-Wall" - ^ - -"Test_name.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_64_cp.1.1.txt index cd384663bf..b3bbf21cfb 100644 --- a/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/clang/c/Preprocessor/.pragma_diagnostic_output.rto/edg_x86_64_cp.1.1.txt @@ -1,25 +1 @@ fe_only -DTEST_NUMBER=1 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Wall" - ^ - -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wall" - ^ - -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wall" - ^ - -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic fatal "-Wall" - ^ - -"Test_name.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.2.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.2.1.txt index f486834a3b..f47190aac2 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.2.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.2.1.txt @@ -3,8 +3,4 @@ fe_only -DTEST_NUMBER=2 --clang -e 200 --no_wrap_diagnostics --clang_version 999 int_val = __INT_MAX__, // INT_MAX ^ -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - 1 error detected in the compilation of "Test_name.c". diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.4.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.4.1.txt index 1156435901..0a9af940d9 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.4.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.4.1.txt @@ -3,8 +3,4 @@ fe_only -DTEST_NUMBER=4 --clang -e 200 --no_wrap_diagnostics --clang_version 999 int_val = __INT_MAX__, // INT_MAX ^ -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - 1 error detected in the compilation of "Test_name.c". diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.5.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.5.1.txt index 1f2f4d0333..57256f8498 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.5.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.5.1.txt @@ -3,8 +3,4 @@ fe_only -DTEST_NUMBER=5 --clang -e 200 --no_wrap_diagnostics --clang_version 999 int_val = __INT_MAX__, // INT_MAX ^ -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - 1 error detected in the compilation of "Test_name.c". diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.6.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.6.1.txt index c5f9f27af4..32a516ff4f 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.6.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.6.1.txt @@ -3,8 +3,4 @@ fe_only -DTEST_NUMBER=6 --clang -e 200 --no_wrap_diagnostics --clang_version 999 int_val = __INT_MAX__, // INT_MAX ^ -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - 1 error detected in the compilation of "Test_name.c". diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.7.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.7.1.txt index 3e2b113bb9..6d341601b2 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.7.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/default.7.1.txt @@ -3,8 +3,4 @@ fe_only -DTEST_NUMBER=7 --clang -e 200 --no_wrap_diagnostics --clang_version 999 int_val = __INT_MAX__, // INT_MAX ^ -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - 1 error detected in the compilation of "Test_name.c". diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.2.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.2.1.txt index c74f45a5ae..cf6c4e60e1 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.2.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.2.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=2 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.4.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.4.1.txt index 2236a44c9c..be7a143ffd 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.4.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.4.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=4 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.5.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.5.1.txt index ac317c07b0..503a9ac316 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.5.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.5.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=5 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.6.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.6.1.txt index d80c451d85..c750363928 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.6.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.6.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=6 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.7.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.7.1.txt index 5a63aac28f..73d1eae576 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.7.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32.7.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=7 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.2.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.2.1.txt index c74f45a5ae..cf6c4e60e1 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.2.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.2.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=2 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.4.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.4.1.txt index 2236a44c9c..be7a143ffd 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.4.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.4.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=4 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.5.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.5.1.txt index ac317c07b0..503a9ac316 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.5.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.5.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=5 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.6.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.6.1.txt index d80c451d85..c750363928 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.6.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.6.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=6 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.7.1.txt b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.7.1.txt index 5a63aac28f..73d1eae576 100644 --- a/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.7.1.txt +++ b/tests/tests/imported/clang/c/Sema/.format-strings-signedness.rto/edg_x86_32_cp.7.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=7 --clang -e 200 --no_wrap_diagnostics --clang_version 999999 --c11 Test_name.c -"Test_name.c", line 222: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat" - ^ - diff --git a/tests/tests/imported/clang/c/Sema/.warn-deprecated-non-prototype.rto/default.1.1.txt b/tests/tests/imported/clang/c/Sema/.warn-deprecated-non-prototype.rto/default.1.1.txt index 7022bc6a13..1fb66c187c 100644 --- a/tests/tests/imported/clang/c/Sema/.warn-deprecated-non-prototype.rto/default.1.1.txt +++ b/tests/tests/imported/clang/c/Sema/.warn-deprecated-non-prototype.rto/default.1.1.txt @@ -3,30 +3,6 @@ fe_only -DTEST_NUMBER=1 --clang -e 200 --no_wrap_diagnostics --clang_version 999 void blapp() { } // both-error {{conflicting types for 'blapp'}} \ ^ -"Test_name.c", line 68: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 69: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wdeprecated-non-prototype" - ^ - -"Test_name.c", line 71: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 75: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 76: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstrict-prototypes" - ^ - -"Test_name.c", line 78: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 97: warning: variable "f" is used before its value is set f(); // OK ^ diff --git a/tests/tests/imported/gnu/c/.Wattribute-alias.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Wattribute-alias.rto/default.1.1.txt index ac815b9195..f4fc3125b8 100644 --- a/tests/tests/imported/gnu/c/.Wattribute-alias.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wattribute-alias.rto/default.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic push "-Wattribute-alias" - ^ - -"Test_name.c", line 20: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wattribute-alias" - ^ - -"Test_name.c", line 23: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop "-Wattribute-alias" - ^ - "Test_name.c", line 54: warning: unknown attribute "leaf" ATTR (pure, leaf) F* resolve_to_const (void) ^ diff --git a/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_32_cp.1.1.txt index 0ea522cdf5..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_32_cp.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic push "-Wattribute-alias" - ^ - -"Test_name.c", line 20: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wattribute-alias" - ^ - -"Test_name.c", line 23: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop "-Wattribute-alias" - ^ - diff --git a/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_64_cp.1.1.txt index 0ea522cdf5..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wattribute-alias.rto/edg_x86_64_cp.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic push "-Wattribute-alias" - ^ - -"Test_name.c", line 20: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wattribute-alias" - ^ - -"Test_name.c", line 23: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop "-Wattribute-alias" - ^ - diff --git a/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-8.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-8.rto/default.1.1.txt index 52ab8188c9..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-8.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-8.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 26: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Wextra" - ^ - diff --git a/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-ignore.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-ignore.rto/default.1.1.txt index 56b2103fd5..e23c4d9461 100644 --- a/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-ignore.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wbuiltin-declaration-mismatch-ignore.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch" - ^ - "Test_name.c", line 11: warning: function "sscanf" declared implicitly sscanf (str, "%d", &i); ^ diff --git a/tests/tests/imported/gnu/c/.Werror-1.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Werror-1.rto/default.1.1.txt index a45f550d96..a7aa28893e 100644 --- a/tests/tests/imported/gnu/c/.Werror-1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-1.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 12: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 15: warning: unknown attribute "dj" void __attribute__((dj)) bar() { } /* { dg-error ".* attribute directive ignored" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_32_cp.1.1.txt index ff68629513..2ea3b5ebfc 100644 --- a/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 12: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 22: warning: controlling expression is constant if (&i) /* { dg-error "7:.* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_64_cp.1.1.txt index ff68629513..2ea3b5ebfc 100644 --- a/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-1.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 12: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 22: warning: controlling expression is constant if (&i) /* { dg-error "7:.* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-10.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Werror-10.rto/default.1.1.txt index 0fac6320f2..01d3ab268d 100644 --- a/tests/tests/imported/gnu/c/.Werror-10.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-10.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 12: warning: unknown attribute "dj" void __attribute__((dj)) bar() { } /* { dg-error ".* attribute directive ignored" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_32_cp.1.1.txt index ed82846da6..efd701c78f 100644 --- a/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 19: warning: controlling expression is constant if (&i) /* { dg-error ".* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_64_cp.1.1.txt index ed82846da6..efd701c78f 100644 --- a/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-10.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 19: warning: controlling expression is constant if (&i) /* { dg-error ".* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-11.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Werror-11.rto/default.1.1.txt index f1282e1fd9..45d9c5ce68 100644 --- a/tests/tests/imported/gnu/c/.Werror-11.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-11.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Waddress" - ^ - "Test_name.c", line 12: warning: unknown attribute "dj" void __attribute__((dj)) bar() { } /* { dg-error ".* attribute directive ignored" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_32_cp.1.1.txt index f5e5428e4f..d348bbd0b0 100644 --- a/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Waddress" - ^ - "Test_name.c", line 19: warning: controlling expression is constant if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_64_cp.1.1.txt index f5e5428e4f..d348bbd0b0 100644 --- a/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-11.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Waddress" - ^ - "Test_name.c", line 19: warning: controlling expression is constant if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-12.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Werror-12.rto/default.1.1.txt index 65f6612b10..31b59b334d 100644 --- a/tests/tests/imported/gnu/c/.Werror-12.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-12.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Waddress" - ^ - "Test_name.c", line 11: warning: unknown attribute "dj" void __attribute__((dj)) bar() { } /* { dg-warning "attribute directive ignored" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_32_cp.1.1.txt index 19e28aac19..bb1ed68831 100644 --- a/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Waddress" - ^ - "Test_name.c", line 18: warning: controlling expression is constant if (&i) /* { dg-bogus "true" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_64_cp.1.1.txt index 19e28aac19..bb1ed68831 100644 --- a/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-12.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Waddress" - ^ - "Test_name.c", line 18: warning: controlling expression is constant if (&i) /* { dg-bogus "true" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-4.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Werror-4.rto/default.1.1.txt index c8c5bcff8c..069ed73c77 100644 --- a/tests/tests/imported/gnu/c/.Werror-4.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-4.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 11: warning: unknown attribute "dj" void __attribute__((dj)) bar() { } /* { dg-warning "attribute directive ignored" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_32_cp.1.1.txt index c91195c1a1..c554c70ade 100644 --- a/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 18: warning: controlling expression is constant if (&i) /* { dg-error "will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_64_cp.1.1.txt index c91195c1a1..c554c70ade 100644 --- a/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-4.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Waddress" - ^ - "Test_name.c", line 18: warning: controlling expression is constant if (&i) /* { dg-error "will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-8.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Werror-8.rto/default.1.1.txt index 927a582c84..3cef5120f6 100644 --- a/tests/tests/imported/gnu/c/.Werror-8.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-8.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Waddress" - ^ - "Test_name.c", line 11: warning: unknown attribute "dj" void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_32_cp.1.1.txt index 334dfaf9fb..c68108929b 100644 --- a/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Waddress" - ^ - "Test_name.c", line 18: warning: controlling expression is constant if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_64_cp.1.1.txt index 334dfaf9fb..c68108929b 100644 --- a/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Werror-8.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Waddress" - ^ - "Test_name.c", line 18: warning: controlling expression is constant if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */ ^ diff --git a/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/default.1.1.txt index 6f80dbc194..b972571407 100644 --- a/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/default.1.1.txt @@ -7,18 +7,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost NOIPA void nowarn_g0 (struct A *p) ^ -"Wfree-nonheap-object-4.c", line 53: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 54: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 56: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Wfree-nonheap-object-4.c", line 60: warning: unknown attribute "noipa" NOIPA void warn_g1 (struct A *p) ^ @@ -27,18 +15,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost NOIPA void nowarn_g1 (struct A *p) ^ -"Wfree-nonheap-object-4.c", line 78: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 79: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 81: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Wfree-nonheap-object-4.c", line 85: warning: unknown attribute "noipa" NOIPA void warn_g2 (struct A *p) ^ @@ -47,15 +23,3 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost NOIPA void nowarn_g2 (struct A *p) ^ -"Wfree-nonheap-object-4.c", line 103: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 104: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 106: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_32_cp.1.1.txt index e9ba278cb0..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_32_cp.1.1.txt @@ -1,37 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Wfree-nonheap-object-4.c", line 53: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 54: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 56: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-4.c", line 78: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 79: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 81: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-4.c", line 103: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 104: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 106: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_64_cp.1.1.txt index e9ba278cb0..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wfree-nonheap-object-4.rto/edg_x86_64_cp.1.1.txt @@ -1,37 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Wfree-nonheap-object-4.c", line 53: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 54: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 56: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-4.c", line 78: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 79: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 81: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-4.c", line 103: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-4.c", line 104: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-4.c", line 106: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.Winfinite-recursion-2.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Winfinite-recursion-2.rto/default.1.1.txt index e2543ae48f..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Winfinite-recursion-2.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Winfinite-recursion-2.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 35: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 36: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Winfinite-recursion" - ^ - -"Test_name.c", line 43: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.Winfinite-recursion.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Winfinite-recursion.rto/default.1.1.txt index e44be17e48..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Winfinite-recursion.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Winfinite-recursion.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 34: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 35: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Winfinite-recursion" - ^ - -"Test_name.c", line 42: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.Wstrict-overflow-24.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.Wstrict-overflow-24.rto/default.1.1.txt index 048bdbb7e9..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.Wstrict-overflow-24.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.Wstrict-overflow-24.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wstrict-overflow" - ^ - diff --git a/tests/tests/imported/gnu/c/.addr_builtin-1.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.addr_builtin-1.rto/default.1.1.txt index 4033a06b94..605b0dd208 100644 --- a/tests/tests/imported/gnu/c/.addr_builtin-1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.addr_builtin-1.rto/default.1.1.txt @@ -7,18 +7,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost a = !__builtin_trap; /* { dg-error "built-in function" } */ ^ -"Test_name.c", line 38: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 40: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpointer-arith" - ^ - -"Test_name.c", line 42: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 50: warning: the standard "alignof" operator does not accept an expression argument (use a type instead) a = _Alignof __builtin_trap; ^ @@ -67,14 +55,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost (void)a; ^ -"Test_name.c", line 188: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 189: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wimplicit-function-declaration" - ^ - "Test_name.c", line 190: warning: function "isalnum" declared implicitly i = isalnum (i) || isalpha (i) || iscntrl (i); ^ @@ -87,10 +67,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost i = isalnum (i) || isalpha (i) || iscntrl (i); ^ -"Test_name.c", line 191: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 13: warning: function "test_taking_address_of_gcc_builtin" was declared but never referenced static F* test_taking_address_of_gcc_builtin (void) ^ diff --git a/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32.1.1.txt b/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32.1.1.txt index 37b27fd14b..69baafd1f9 100644 --- a/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32.1.1.txt +++ b/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32.1.1.txt @@ -7,18 +7,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost a = !__builtin_trap; /* { dg-error "built-in function" } */ ^ -"Test_name.c", line 38: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 40: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpointer-arith" - ^ - -"Test_name.c", line 42: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 50: warning: the standard "alignof" operator does not accept an expression argument (use a type instead) a = _Alignof __builtin_trap; ^ @@ -67,14 +55,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost (void)a; ^ -"Test_name.c", line 188: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 189: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wimplicit-function-declaration" - ^ - "Test_name.c", line 190: warning: function "isalnum" declared implicitly i = isalnum (i) || isalpha (i) || iscntrl (i); ^ @@ -87,10 +67,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost i = isalnum (i) || isalpha (i) || iscntrl (i); ^ -"Test_name.c", line 191: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 13: warning: function "test_taking_address_of_gcc_builtin" was declared but never referenced static F* test_taking_address_of_gcc_builtin (void) ^ diff --git a/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32_cp.1.1.txt index 37b27fd14b..69baafd1f9 100644 --- a/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.addr_builtin-1.rto/edg_x86_32_cp.1.1.txt @@ -7,18 +7,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost a = !__builtin_trap; /* { dg-error "built-in function" } */ ^ -"Test_name.c", line 38: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 40: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpointer-arith" - ^ - -"Test_name.c", line 42: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 50: warning: the standard "alignof" operator does not accept an expression argument (use a type instead) a = _Alignof __builtin_trap; ^ @@ -67,14 +55,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost (void)a; ^ -"Test_name.c", line 188: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 189: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wimplicit-function-declaration" - ^ - "Test_name.c", line 190: warning: function "isalnum" declared implicitly i = isalnum (i) || isalpha (i) || iscntrl (i); ^ @@ -87,10 +67,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost i = isalnum (i) || isalpha (i) || iscntrl (i); ^ -"Test_name.c", line 191: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 13: warning: function "test_taking_address_of_gcc_builtin" was declared but never referenced static F* test_taking_address_of_gcc_builtin (void) ^ diff --git a/tests/tests/imported/gnu/c/.builtins-68.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.builtins-68.rto/default.1.1.txt index 21253e4691..07dc79307f 100644 --- a/tests/tests/imported/gnu/c/.builtins-68.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.builtins-68.rto/default.1.1.txt @@ -1,12 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 65: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 66: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wint-conversion" - ^ - "Test_name.c", line 68: warning: argument of type "void *" is incompatible with parameter of type "unsigned long" p = __builtin_alloca_with_align (n, (void*)0); /* { dg-error "must be a constant integer" } */ ^ @@ -19,10 +11,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost p = __builtin_alloca_with_align (n, L""); /* { dg-error "must be a constant integer" } */ ^ -"Test_name.c", line 72: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 27: warning: variable "p" was set but never used static void* p; ^ diff --git a/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32.1.1.txt b/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32.1.1.txt index 43d55b524a..7b10d74e67 100644 --- a/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32.1.1.txt +++ b/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32.1.1.txt @@ -1,12 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 65: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 66: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wint-conversion" - ^ - "Test_name.c", line 68: warning: argument of type "void *" is incompatible with parameter of type "unsigned int" p = __builtin_alloca_with_align (n, (void*)0); /* { dg-error "must be a constant integer" } */ ^ @@ -19,10 +11,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost p = __builtin_alloca_with_align (n, L""); /* { dg-error "must be a constant integer" } */ ^ -"Test_name.c", line 72: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 27: warning: variable "p" was set but never used static void* p; ^ diff --git a/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32_cp.1.1.txt index 43d55b524a..7b10d74e67 100644 --- a/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/.builtins-68.rto/edg_x86_32_cp.1.1.txt @@ -1,12 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 65: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 66: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wint-conversion" - ^ - "Test_name.c", line 68: warning: argument of type "void *" is incompatible with parameter of type "unsigned int" p = __builtin_alloca_with_align (n, (void*)0); /* { dg-error "must be a constant integer" } */ ^ @@ -19,10 +11,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost p = __builtin_alloca_with_align (n, L""); /* { dg-error "must be a constant integer" } */ ^ -"Test_name.c", line 72: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 27: warning: variable "p" was set but never used static void* p; ^ diff --git a/tests/tests/imported/gnu/c/.pr48062.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pr48062.rto/default.1.1.txt index be7392fc20..a83f31b5e3 100644 --- a/tests/tests/imported/gnu/c/.pr48062.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pr48062.rto/default.1.1.txt @@ -1,20 +1,8 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 12: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wshadow" - ^ - "Test_name.c", line 13: warning: variable "i" was declared but never referenced { int i; } ^ -"Test_name.c", line 14: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 10: warning: variable "i" was declared but never referenced int i; /* { dg-bogus "shadowed declaration" } */ ^ diff --git a/tests/tests/imported/gnu/c/.pr56824.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pr56824.rto/default.1.1.txt index 7fe0ed5da9..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pr56824.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pr56824.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 10: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Waggregate-return" - ^ - -"Test_name.c", line 20: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.pr59304.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pr59304.rto/default.1.1.txt index fc90074505..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pr59304.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pr59304.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 14: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wswitch-enum" - ^ - -"Test_name.c", line 29: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.pr69543.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pr69543.rto/default.1.1.txt index 6a319571b7..b2096c447d 100644 --- a/tests/tests/imported/gnu/c/.pr69543.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pr69543.rto/default.1.1.txt @@ -1,21 +1,5 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 17: warning: unrecognized GCC pragma - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - ^ - -"Test_name.c", line 17: warning: unrecognized GCC pragma - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - ^ - -"Test_name.c", line 17: warning: unrecognized GCC pragma - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - ^ - "Test_name.c", line 18: warning: variable "yyvsp" is used before its value is set *++yyvsp = yylval; ^ -"Test_name.c", line 19: warning: unrecognized GCC pragma - YY_IGNORE_MAYBE_UNINITIALIZED_END - ^ - diff --git a/tests/tests/imported/gnu/c/.pr69900.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pr69900.rto/default.1.1.txt index c5fd3b6c0d..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pr69900.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pr69900.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */ - ^ - -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */ - ^ - -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */ - ^ - diff --git a/tests/tests/imported/gnu/c/.pr81795.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pr81795.rto/default.1.1.txt index 2eeabcae87..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pr81795.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pr81795.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wc++-compat" - ^ - -"Test_name.c", line 16: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.pragma-diag-1.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-1.rto/default.1.1.txt index b938926eb7..523290c41b 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-1.rto/default.1.1.txt @@ -1,36 +1,16 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 17: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wuninitialized" - ^ - "Test_name.c", line 18: warning: variable "a" is used before its value is set foo(a); /* { dg-error "uninitialized" } */ ^ -"Test_name.c", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 20: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wuninitialized" - ^ - "Test_name.c", line 21: warning: variable "b" is used before its value is set foo(b); ^ -"Test_name.c", line 22: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 23: warning: variable "c" is used before its value is set foo(c); /* { dg-error "uninitialized" } */ ^ -"Test_name.c", line 24: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 25: warning: variable "d" is used before its value is set foo(d); /* { dg-warning "uninitialized" } */ ^ diff --git a/tests/tests/imported/gnu/c/.pragma-diag-10.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-10.rto/default.1.1.txt index dc5995b3f9..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-10.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-10.rto/default.1.1.txt @@ -1,17 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 12: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstringop-overflow" - ^ - -"Test_name.c", line 14: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstringop-overread" - ^ - -"Test_name.c", line 17: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.pragma-diag-2.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-2.rto/default.1.1.txt index 0c7ebfa58e..9d775a701a 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-2.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-2.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc --c89 Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wlong-long" - ^ - diff --git a/tests/tests/imported/gnu/c/.pragma-diag-3.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-3.rto/default.1.1.txt index 779be22a55..96c2275628 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-3.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-3.rto/default.1.1.txt @@ -1,45 +1,9 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 12: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstrict-overflow" - ^ - "Test_name.c", line 14: warning: expression has no effect j + 4 < j; ^ -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 20: warning: expression has no effect k + 4 < k; /* { dg-error "overflow" "" { xfail *-*-* } } */ ^ -"Test_name.c", line 31: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 32: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wsign-compare" - ^ - -"Test_name.c", line 35: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 48: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 49: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wswitch-enum" - ^ - -"Test_name.c", line 57: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.pragma-diag-4.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-4.rto/default.1.1.txt index a7f645ec66..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-4.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-4.rto/default.1.1.txt @@ -1,25 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 16: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wsign-compare" - ^ - -"Test_name.c", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 32: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 33: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wswitch-enum" - ^ - -"Test_name.c", line 41: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.pragma-diag-5.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-5.rto/default.1.1.txt index cdb81f6122..6b200207d1 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-5.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-5.rto/default.1.1.txt @@ -1,13 +1,9 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c "Test_name.c", line 4: warning: unrecognized GCC pragma #pragma GCC diagnostic /* { dg-warning "missing" "missing" } */ - ^ + ^ "Test_name.c", line 7: warning: unrecognized GCC pragma #pragma GCC diagnostic warn /* { dg-warning "24:expected" } */ - ^ - -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfoo" /* { dg-warning "32:unknown" } */ - ^ + ^ diff --git a/tests/tests/imported/gnu/c/.pragma-diag-6.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-6.rto/default.1.1.txt index c713c189e4..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-6.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-6.rto/default.1.1.txt @@ -1,25 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 4: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wnoexcept" /* { dg-warning "is valid for C../ObjC.. but not for C" } */ - ^ - -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-fstrict-aliasing" /* { dg-warning "not an option that controls warnings" } */ - ^ - -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Werror" /* { dg-warning "not an option that controls warnings" } */ - ^ - -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wvla2" /* { dg-warning "unknown option after '#pragma GCC diagnostic' kind" } */ - ^ - -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Walla" /* { dg-warning "unknown option after '#pragma GCC diagnostic' kind" } */ - ^ - -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Walla" /* { dg-warning "unknown option after '#pragma GCC diagnostic' kind" } */ - ^ - diff --git a/tests/tests/imported/gnu/c/.pragma-diag-7.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-7.rto/default.1.1.txt index f7e86b0a03..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-7.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-7.rto/default.1.1.txt @@ -1,17 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Wtraditional" - ^ - -"Test_name.c", line 10: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wtraditional" - ^ - diff --git a/tests/tests/imported/gnu/c/.pragma-diag-9.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.pragma-diag-9.rto/default.1.1.txt index 41e62b1f98..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.pragma-diag-9.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.pragma-diag-9.rto/default.1.1.txt @@ -1,49 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 38: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 39: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstringop-overflow" - ^ - -"Test_name.c", line 41: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 71: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 72: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstringop-overflow" - ^ - -"Test_name.c", line 74: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 104: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 105: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstringop-overflow" - ^ - -"Test_name.c", line 107: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 139: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 140: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wstringop-overflow" - ^ - -"Test_name.c", line 142: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/.uninit-suppress_3.rto/default.1.1.txt b/tests/tests/imported/gnu/c/.uninit-suppress_3.rto/default.1.1.txt index 794b0ae80b..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/.uninit-suppress_3.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/.uninit-suppress_3.rto/default.1.1.txt @@ -1,37 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 17: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 18: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" - ^ - -"Test_name.c", line 22: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 51: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 52: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" - ^ - -"Test_name.c", line 63: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 94: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 95: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" - ^ - -"Test_name.c", line 99: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/analyzer/.infinite-recursion-5.rto/default.1.1.txt b/tests/tests/imported/gnu/c/analyzer/.infinite-recursion-5.rto/default.1.1.txt index ea6c719e47..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/analyzer/.infinite-recursion-5.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/analyzer/.infinite-recursion-5.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 31: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 32: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wanalyzer-infinite-recursion" - ^ - -"Test_name.c", line 39: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/analyzer/.pragma-1.rto/default.1.1.txt b/tests/tests/imported/gnu/c/analyzer/.pragma-1.rto/default.1.1.txt index e7fc421522..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/analyzer/.pragma-1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/analyzer/.pragma-1.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"./analyzer/pragma-1.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./analyzer/pragma-1.c", line 14: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wanalyzer-double-free" - ^ - -"./analyzer/pragma-1.c", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/analyzer/.pragma-2.rto/default.1.1.txt b/tests/tests/imported/gnu/c/analyzer/.pragma-2.rto/default.1.1.txt index 90714bacc1..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/analyzer/.pragma-2.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/analyzer/.pragma-2.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"./analyzer/pragma-2.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./analyzer/pragma-2.c", line 14: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wanalyzer-too-complex" - ^ - -"./analyzer/pragma-2.c", line 58: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/cpp/.Wvariadic-1p.rto/default.1.1.txt b/tests/tests/imported/gnu/c/cpp/.Wvariadic-1p.rto/default.1.1.txt index 5dcc611d05..90ee6b99ac 100644 --- a/tests/tests/imported/gnu/c/cpp/.Wvariadic-1p.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/cpp/.Wvariadic-1p.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc --c99 --strict_gnu Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wpedantic" - ^ - diff --git a/tests/tests/imported/gnu/c/cpp/._Pragma7.rto/default.1.1.txt b/tests/tests/imported/gnu/c/cpp/._Pragma7.rto/default.1.1.txt index fb1e57df9d..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/cpp/._Pragma7.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/cpp/._Pragma7.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 15: warning: unrecognized GCC pragma - TEST(myint) - ^ - diff --git a/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-1.rto/default.1.1.txt b/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-1.rto/default.1.1.txt index 5c9137c57e..b03e052dc1 100644 --- a/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-1.rto/default.1.1.txt @@ -1,20 +1,8 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 14: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wuninitialized" - ^ - "Test_name.c", line 19: warning: variable "a" is used before its value is set CODE_WITH_WARNING; ^ -"Test_name.c", line 22: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 24: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wuninitialized" - ^ - "Test_name.c", line 29: warning: variable "a" is used before its value is set CODE_WITH_WARNING; /* { dg-error "uninitialized" } */ ^ diff --git a/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-2.rto/default.1.1.txt b/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-2.rto/default.1.1.txt index e55eb8a4e4..6dfc2c6276 100644 --- a/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-2.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/cpp/.pragma-diagnostic-2.rto/default.1.1.txt @@ -1,16 +1,8 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 14: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wuninitialized" - ^ - "Test_name.c", line 20: warning: variable "a" is used before its value is set CODE_WITH_WARNING; ^ -"Test_name.c", line 23: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wuninitialized" - ^ - "Test_name.c", line 28: warning: variable "a" is used before its value is set CODE_WITH_WARNING; /* { dg-message "in expansion of macro 'CODE_WITH_WARNING'" } */ ^ diff --git a/tests/tests/imported/gnu/c/format/.gcc_diag-11.rto/default.1.1.txt b/tests/tests/imported/gnu/c/format/.gcc_diag-11.rto/default.1.1.txt index c83d4ebd0e..f988356402 100644 --- a/tests/tests/imported/gnu/c/format/.gcc_diag-11.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/format/.gcc_diag-11.rto/default.1.1.txt @@ -31,39 +31,3 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnost void cxxdiag (const char*, ...) __attribute__ ((format (__gcc_cxxdiag__, 1, 2))); ^ -"./format/gcc_diag-11.c", line 106: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./format/gcc_diag-11.c", line 107: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat-diag" - ^ - -"./format/gcc_diag-11.c", line 112: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"./format/gcc_diag-11.c", line 252: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./format/gcc_diag-11.c", line 253: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat-diag" - ^ - -"./format/gcc_diag-11.c", line 258: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"./format/gcc_diag-11.c", line 269: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./format/gcc_diag-11.c", line 270: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wformat-diag" - ^ - -"./format/gcc_diag-11.c", line 275: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/c/sarif-output/.bad-pragma.rto/default.1.1.txt b/tests/tests/imported/gnu/c/sarif-output/.bad-pragma.rto/default.1.1.txt index 98e5f0f6ad..c0c459ba34 100644 --- a/tests/tests/imported/gnu/c/sarif-output/.bad-pragma.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/sarif-output/.bad-pragma.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wmisleading-indenttion" - ^ - diff --git a/tests/tests/imported/gnu/c/sso/.s5.rto/default.1.1.txt b/tests/tests/imported/gnu/c/sso/.s5.rto/default.1.1.txt index 487e7ae867..537766acaa 100644 --- a/tests/tests/imported/gnu/c/sso/.s5.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/sso/.s5.rto/default.1.1.txt @@ -7,10 +7,6 @@ eccp -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics struct __attribute__((scalar_storage_order("big-endian"))) R2 ^ -"./sso/s5.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wscalar-storage-order" - ^ - "./sso/s5.c", line 15: warning: unknown attribute "scalar_storage_order" struct __attribute__((scalar_storage_order("little-endian"))) Nested1 ^ diff --git a/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_32_cp.1.1.txt index 0c111fdcf2..531b329c84 100644 --- a/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_32_cp.1.1.txt @@ -1,5 +1 @@ eccp -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"./sso/s5.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wscalar-storage-order" - ^ - diff --git a/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_64_cp.1.1.txt index 0c111fdcf2..531b329c84 100644 --- a/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/sso/.s5.rto/edg_x86_64_cp.1.1.txt @@ -1,5 +1 @@ eccp -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"./sso/s5.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wscalar-storage-order" - ^ - diff --git a/tests/tests/imported/gnu/c/sso/.s6.rto/default.1.1.txt b/tests/tests/imported/gnu/c/sso/.s6.rto/default.1.1.txt index 4ce300b1f7..e5c3991465 100644 --- a/tests/tests/imported/gnu/c/sso/.s6.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/c/sso/.s6.rto/default.1.1.txt @@ -15,7 +15,3 @@ eccp -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics struct __attribute__((scalar_storage_order("big-endian"))) R2 ^ -"./sso/s6.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wscalar-storage-order" - ^ - diff --git a/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_32_cp.1.1.txt index 83348a8394..531b329c84 100644 --- a/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_32_cp.1.1.txt @@ -1,5 +1 @@ eccp -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"./sso/s6.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wscalar-storage-order" - ^ - diff --git a/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_64_cp.1.1.txt index 83348a8394..531b329c84 100644 --- a/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/c/sso/.s6.rto/edg_x86_64_cp.1.1.txt @@ -1,5 +1 @@ eccp -DTEST_NUMBER=1 --gnu_version=999999 -e 200 --no_wrap --no_wrap_diagnostics --gcc Test_name.c -"./sso/s6.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wscalar-storage-order" - ^ - diff --git a/tests/tests/imported/gnu/cpp/abi/.no_unique_address6.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/abi/.no_unique_address6.rto/default.1.1.txt index db4c5af064..eb7f1bf712 100644 --- a/tests/tests/imported/gnu/cpp/abi/.no_unique_address6.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/abi/.no_unique_address6.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++20 Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Winvalid-offsetof" - ^ - "Test_name.c", line 25: warning: offsetof applied to a type other than a standard-layout class SA(__builtin_offsetof (B, d) == __builtin_offsetof (C, d)); ^ diff --git a/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21a.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21a.rto/default.1.1.txt index 4c72f3e2b3..129378a0a4 100644 --- a/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21a.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21a.rto/default.1.1.txt @@ -7,14 +7,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d float f2{g ()}; /* { dg-warning "-Wnarrowing" } */ ^ -"Test_name.c", line 9: error: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 10: error: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wnarrowing" - ^ - "Test_name.c", line 11: error: invalid narrowing conversion from "int" to "float": constant value cannot be represented exactly in destination type float f3{123456789}; /* { dg-bogus "-Wnarrowing" } */ ^ @@ -23,10 +15,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d float f4{g ()}; /* { dg-bogus "-Wnarrowing" } */ ^ -"Test_name.c", line 13: error: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 14: error: invalid narrowing conversion from "int" to "float": constant value cannot be represented exactly in destination type float f5{123456789}; /* { dg-bogus "warning" "warning in place of error" } */ ^ @@ -35,4 +23,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d float f6{g ()}; /* { dg-warning "-Wnarrowing" } */ ^ -9 errors detected in the compilation of "Test_name.c". +6 errors detected in the compilation of "Test_name.c". diff --git a/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21c.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21c.rto/default.1.1.txt index 9101c1933c..1382a323bf 100644 --- a/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21c.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp0x/.Wnarrowing21c.rto/default.1.1.txt @@ -3,22 +3,10 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d float f1{123456789}; /* { dg-warning "-Wnarrowing" } */ ^ -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wnarrowing" - ^ - "Test_name.c", line 9: warning: invalid narrowing conversion from "int" to "float": constant value cannot be represented exactly in destination type float f2{123456789}; /* { dg-bogus "-Wnarrowing" } */ ^ -"Test_name.c", line 10: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 11: warning: invalid narrowing conversion from "int" to "float": constant value cannot be represented exactly in destination type float f3{123456789}; /* { dg-warning "-Wnarrowing" } */ ^ diff --git a/tests/tests/imported/gnu/cpp/cpp0x/.constexpr-array-ptr10.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp0x/.constexpr-array-ptr10.rto/default.1.1.txt index fd0558d330..9afb2519c5 100644 --- a/tests/tests/imported/gnu/cpp/cpp0x/.constexpr-array-ptr10.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp0x/.constexpr-array-ptr10.rto/default.1.1.txt @@ -55,14 +55,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d constexpr bool b13 = 0 >= p0; // { dg-error "24:ordered comparison" } ^ -"Test_name.c", line 58: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 59: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wextra" - ^ - "Test_name.c", line 62: error: expression must have a constant value constexpr bool b0 = p0; // { dg-error "not a constant expression" } ^ @@ -161,22 +153,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d constexpr bool b12 = 0 > p0; // { dg-error "ordered comparison" } ^ -"Test_name.c", line 79: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Test_name.c", line 89: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 91: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wextra" - ^ - -"Test_name.c", line 94: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Waddress" - ^ - "Test_name.c", line 96: error: expression must have a constant value constexpr bool b0 = p1; // { dg-error "not a constant expression" } ^ @@ -247,10 +223,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d constexpr bool b13 = 0 >= p1; // { dg-error "ordered comparison" } ^ -"Test_name.c", line 114: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 21: warning: variable "A::b0" was declared but never referenced constexpr bool b0 = p0; // { dg-warning "address of .A::i." } ^ diff --git a/tests/tests/imported/gnu/cpp/cpp0x/.depr-copy4.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp0x/.depr-copy4.rto/default.1.1.txt index fd22ae2a51..1c625c94ce 100644 --- a/tests/tests/imported/gnu/cpp/cpp0x/.depr-copy4.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp0x/.depr-copy4.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wdeprecated-copy" - ^ - -"Test_name.c", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/cpp0x/.extern_template-7.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp0x/.extern_template-7.rto/default.1.1.txt index 44806c083e..1c625c94ce 100644 --- a/tests/tests/imported/gnu/cpp/cpp0x/.extern_template-7.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp0x/.extern_template-7.rto/default.1.1.txt @@ -1,9 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 3: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 4: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wc++11-extensions" - ^ - diff --git a/tests/tests/imported/gnu/cpp/cpp0x/.keywords2.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp0x/.keywords2.rto/default.1.1.txt index 5f592e8e17..6e229db559 100644 --- a/tests/tests/imported/gnu/cpp/cpp0x/.keywords2.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp0x/.keywords2.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++03 Test_name.c -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wc++11-compat" - ^ - diff --git a/tests/tests/imported/gnu/cpp/cpp0x/.va-opt1.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp0x/.va-opt1.rto/default.1.1.txt index 44e4ceb17d..dbfc172552 100644 --- a/tests/tests/imported/gnu/cpp/cpp0x/.va-opt1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp0x/.va-opt1.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wvariadic-macros" - ^ - -"Test_name.c", line 16: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wc++20-extensions" - ^ - diff --git a/tests/tests/imported/gnu/cpp/cpp1z/.class-deduction109.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp1z/.class-deduction109.rto/default.1.1.txt index 8c61e79e53..bcc63ce0fb 100644 --- a/tests/tests/imported/gnu/cpp/cpp1z/.class-deduction109.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp1z/.class-deduction109.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"Test_name.c", line 57: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wunused-but-set-variable" - ^ - "Test_name.c", line 59: warning: variable "f0" was declared but never referenced auto f0 = F0{&fun}; //OK ^ diff --git a/tests/tests/imported/gnu/cpp/cpp23/.ext-floating19.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp23/.ext-floating19.rto/default.1.1.txt index 42e8a736ed..dcdf4c999a 100644 --- a/tests/tests/imported/gnu/cpp/cpp23/.ext-floating19.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp23/.ext-floating19.rto/default.1.1.txt @@ -1,9 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++11 Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wc++23-extensions" - ^ - diff --git a/tests/tests/imported/gnu/cpp/cpp23/.named-universal-char-escape3.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp23/.named-universal-char-escape3.rto/default.1.1.txt index 7a03d58d78..1fbcf4f08d 100644 --- a/tests/tests/imported/gnu/cpp/cpp23/.named-universal-char-escape3.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp23/.named-universal-char-escape3.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++23 Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - "Test_name.c", line 9: warning: #warning directive: foo /* { dg-warning foo } */ #warning foo /* { dg-warning foo } */ ^ @@ -19,10 +15,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d #warning foo /* { dg-warning foo } */ ^ -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wc++23-extensions" - ^ - "Test_name.c", line 19: warning: expression has no effect '\x{0f}'; ^ diff --git a/tests/tests/imported/gnu/cpp/cpp2a/.keywords2.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/cpp2a/.keywords2.rto/default.1.1.txt index 932c35bf72..dbfc172552 100644 --- a/tests/tests/imported/gnu/cpp/cpp2a/.keywords2.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/cpp2a/.keywords2.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wc++20-compat" - ^ - diff --git a/tests/tests/imported/gnu/cpp/ext/.pragma1.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/ext/.pragma1.rto/default.1.1.txt index 6d3f82f216..00dd6e9f1e 100644 --- a/tests/tests/imported/gnu/cpp/ext/.pragma1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/ext/.pragma1.rto/default.1.1.txt @@ -3,8 +3,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d "1" // { dg-error "" } ^ -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - 1 error detected in the compilation of "Test_name.c". diff --git a/tests/tests/imported/gnu/cpp/lto/.20080907_0.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20080907_0.rto/default.1.1.txt index 60b65686f2..aa1ad7628c 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20080907_0.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20080907_0.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: missing return statement at end of non-void function "bar" struct Foo { void func (); }; Foo & bar () { } struct Baz { Baz (Baz &); }; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20090221_0.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20090221_0.rto/default.1.1.txt index 0747804a44..9ff06a2fc0 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20090221_0.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20090221_0.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 38: warning: missing return statement at end of non-void function "Zonk::func_1" } ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20091026-1_1.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20091026-1_1.rto/default.1.1.txt index e4d4d4cb33..476445763f 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20091026-1_1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20091026-1_1.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"./lto/20091026-1_1.C", line 3: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "./lto/20091026-1_1.C", line 15: warning: missing return statement at end of non-void function "run" } ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/default.1.1.txt index 238fda7a12..15b6b44f35 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: declaration of "size_t" does not match the expected type "unsigned long" typedef long size_t; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32.1.1.txt index 0b0c241c64..72883cd744 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: declaration of "size_t" does not match the expected type "unsigned int" typedef long size_t; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32_cp.1.1.txt index 95216cf00a..227f947df5 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: declaration of "size_t" does not match the expected type "unsigned int" typedef long size_t; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_64_cp.1.1.txt index c13ba64608..71e0252a38 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20101010-1_0.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: declaration of "size_t" does not match the expected type "unsigned long" typedef long size_t; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/default.1.1.txt index dcf955ec1d..20f336a246 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: declaration of "size_t" does not match the expected type "unsigned long" typedef int size_t; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32.1.1.txt index f0ba19218d..705ad0bf07 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: declaration of "size_t" does not match the expected type "unsigned int" typedef int size_t; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32_cp.1.1.txt index f0ba19218d..705ad0bf07 100644 --- a/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.20101010-2_0.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 8: warning: declaration of "size_t" does not match the expected type "unsigned int" typedef int size_t; ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.pr54625-1_1.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.pr54625-1_1.rto/default.1.1.txt index b12cf30508..b4e0a68913 100644 --- a/tests/tests/imported/gnu/cpp/lto/.pr54625-1_1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.pr54625-1_1.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 5: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 15: warning: missing return statement at end of non-void function "A::lookup" } ^ diff --git a/tests/tests/imported/gnu/cpp/lto/.pr83720_0.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/lto/.pr83720_0.rto/default.1.1.txt index f3aec8411a..39f06904a4 100644 --- a/tests/tests/imported/gnu/cpp/lto/.pr83720_0.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/lto/.pr83720_0.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 24: warning: missing return statement at end of non-void function "i::g [with e=lambda [](b::ai)->void]" static e g(const int) { } ^ diff --git a/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/default.1.1.txt index 1fe2284c94..829a991a24 100644 --- a/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++20 --modules Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - ^ - diff --git a/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_32_cp.1.1.txt index dcbdbbdf48..a09b2743ff 100644 --- a/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_32_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++20 --modules Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - ^ - "Test_name.c", line 12: warning: function "depr_fn" was declared deprecated template void f(T) { depr_fn(); } ^ diff --git a/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_64_cp.1.1.txt index dcbdbbdf48..a09b2743ff 100644 --- a/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/modules/.warn-spec-2_a.rto/edg_x86_64_cp.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++20 --modules Test_name.c -"Test_name.c", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - ^ - "Test_name.c", line 12: warning: function "depr_fn" was declared deprecated template void f(T) { depr_fn(); } ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads1.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads1.rto/default.1.1.txt index 80026a1f3c..45eb86656e 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads1.rto/default.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads.def", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads.def", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads.def", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads.def", line 175: error: static assertion failed static_assert(is_add_fetch_available::value == true); static_assert(is_add_fetch_available::value == false); static_assert(is_add_fetch_available::value == true); static_assert(is_add_fetch_available::value == false); static_assert(is_add_fetch_available::value == false); static_assert(is_add_fetch_available::value == false); static_assert(is_add_fetch_available::value == false); static_assert(is_add_fetch_available::value == false); static_assert(is_add_fetch_available::value == true); static_assert(is_fetch_add_available::value == true); static_assert(is_fetch_add_available::value == false); static_assert(is_fetch_add_available::value == true); static_assert(is_fetch_add_available::value == false); static_assert(is_fetch_add_available::value == false); static_assert(is_fetch_add_available::value == false); static_assert(is_fetch_add_available::value == false); static_assert(is_fetch_add_available::value == false); static_assert(is_fetch_add_available::value == true); static_assert(is_sub_fetch_available::value == true); static_assert(is_sub_fetch_available::value == false); static_assert(is_sub_fetch_available::value == true); static_assert(is_sub_fetch_available::value == false); static_assert(is_sub_fetch_available::value == false); static_assert(is_sub_fetch_available::value == false); static_assert(is_sub_fetch_available::value == false); static_assert(is_sub_fetch_available::value == false); static_assert(is_sub_fetch_available::value == true); static_assert(is_fetch_sub_available::value == true); static_assert(is_fetch_sub_available::value == false); static_assert(is_fetch_sub_available::value == true); static_assert(is_fetch_sub_available::value == false); static_assert(is_fetch_sub_available::value == false); static_assert(is_fetch_sub_available::value == false); static_assert(is_fetch_sub_available::value == false); static_assert(is_fetch_sub_available::value == false); static_assert(is_fetch_sub_available::value == true); static_assert(is_and_fetch_available::value == true); static_assert(is_and_fetch_available::value == false); static_assert(is_and_fetch_available::value == true); static_assert(is_and_fetch_available::value == false); static_assert(is_and_fetch_available::value == false); static_assert(is_and_fetch_available::value == false); static_assert(is_and_fetch_available::value == false); static_assert(is_and_fetch_available::value == false); static_assert(is_and_fetch_available::value == true); static_assert(is_fetch_and_available::value == true); static_assert(is_fetch_and_available::value == false); static_assert(is_fetch_and_available::value == true); static_assert(is_fetch_and_available::value == false); static_assert(is_fetch_and_available::value == false); static_assert(is_fetch_and_available::value == false); static_assert(is_fetch_and_available::value == false); static_assert(is_fetch_and_available::value == false); static_assert(is_fetch_and_available::value == true); static_assert(is_xor_fetch_available::value == true); static_assert(is_xor_fetch_available::value == false); static_assert(is_xor_fetch_available::value == true); static_assert(is_xor_fetch_available::value == false); static_assert(is_xor_fetch_available::value == false); static_assert(is_xor_fetch_available::value == false); static_assert(is_xor_fetch_available::value == false); static_assert(is_xor_fetch_available::value == false); static_assert(is_xor_fetch_available::value == true); static_assert(is_fetch_xor_available::value == true); static_assert(is_fetch_xor_available::value == false); static_assert(is_fetch_xor_available::value == true); static_assert(is_fetch_xor_available::value == false); static_assert(is_fetch_xor_available::value == false); static_assert(is_fetch_xor_available::value == false); static_assert(is_fetch_xor_available::value == false); static_assert(is_fetch_xor_available::value == false); static_assert(is_fetch_xor_available::value == true); static_assert(is_or_fetch_available::value == true); static_assert(is_or_fetch_available::value == false); static_assert(is_or_fetch_available::value == true); static_assert(is_or_fetch_available::value == false); static_assert(is_or_fetch_available::value == false); static_assert(is_or_fetch_available::value == false); static_assert(is_or_fetch_available::value == false); static_assert(is_or_fetch_available::value == false); static_assert(is_or_fetch_available::value == true); static_assert(is_fetch_or_available::value == true); static_assert(is_fetch_or_available::value == false); static_assert(is_fetch_or_available::value == true); static_assert(is_fetch_or_available::value == false); static_assert(is_fetch_or_available::value == false); static_assert(is_fetch_or_available::value == false); static_assert(is_fetch_or_available::value == false); static_assert(is_fetch_or_available::value == false); static_assert(is_fetch_or_available::value == true); static_assert(is_nand_fetch_available::value == true); static_assert(is_nand_fetch_available::value == false); static_assert(is_nand_fetch_available::value == true); static_assert(is_nand_fetch_available::value == false); static_assert(is_nand_fetch_available::value == false); static_assert(is_nand_fetch_available::value == false); static_assert(is_nand_fetch_available::value == false); static_assert(is_nand_fetch_available::value == false); static_assert(is_nand_fetch_available::value == true); static_assert(is_fetch_nand_available::value == true); static_assert(is_fetch_nand_available::value == false); static_assert(is_fetch_nand_available::value == true); static_assert(is_fetch_nand_available::value == false); static_assert(is_fetch_nand_available::value == false); static_assert(is_fetch_nand_available::value == false); static_assert(is_fetch_nand_available::value == false); static_assert(is_fetch_nand_available::value == false); static_assert(is_fetch_nand_available::value == true); static_assert(is_load_n_available::value == true); static_assert(is_load_n_available::value == true); static_assert(is_load_n_available::value == true); static_assert(is_load_n_available::value == false); static_assert(is_load_n_available::value == false); static_assert(is_load_n_available::value == false); static_assert(is_load_n_available::value == false); static_assert(is_load_n_available::value == true); static_assert(is_load_n_available::value == false); static_assert(is_load_available::value == true); static_assert(is_load_available::value == true); static_assert(is_load_available::value == true); static_assert(is_load_available::value == true); static_assert(is_load_available::value == false); static_assert(is_load_available::value == true); static_assert(is_load_available::value == false); static_assert(is_load_available::value == true); static_assert(is_load_available::value == true); static_assert(is_store_n_available::value == true); static_assert(is_store_n_available::value == true); static_assert(is_store_n_available::value == true); static_assert(is_store_n_available::value == false); static_assert(is_store_n_available::value == false); static_assert(is_store_n_available::value == false); static_assert(is_store_n_available::value == false); static_assert(is_store_n_available::value == true); static_assert(is_store_n_available::value == false); static_assert(is_store_available::value == true); static_assert(is_store_available::value == true); static_assert(is_store_available::value == true); static_assert(is_store_available::value == true); static_assert(is_store_available::value == false); static_assert(is_store_available::value == true); static_assert(is_store_available::value == false); static_assert(is_store_available::value == true); static_assert(is_store_available::value == true); static_assert(is_exchange_n_available::value == true); static_assert(is_exchange_n_available::value == true); static_assert(is_exchange_n_available::value == true); static_assert(is_exchange_n_available::value == false); static_assert(is_exchange_n_available::value == false); static_assert(is_exchange_n_available::value == false); static_assert(is_exchange_n_available::value == false); static_assert(is_exchange_n_available::value == true); static_assert(is_exchange_n_available::value == false); static_assert(is_exchange_available::value == true); static_assert(is_exchange_available::value == true); static_assert(is_exchange_available::value == true); static_assert(is_exchange_available::value == true); static_assert(is_exchange_available::value == false); static_assert(is_exchange_available::value == true); static_assert(is_exchange_available::value == false); static_assert(is_exchange_available::value == true); static_assert(is_exchange_available::value == true); static_assert(is_compare_exchange_n_available::value == true); static_assert(is_compare_exchange_n_available::value == true); static_assert(is_compare_exchange_n_available::value == true); static_assert(is_compare_exchange_n_available::value == false); static_assert(is_compare_exchange_n_available::value == false); static_assert(is_compare_exchange_n_available::value == false); static_assert(is_compare_exchange_n_available::value == false); static_assert(is_compare_exchange_n_available::value == true); static_assert(is_compare_exchange_n_available::value == false); static_assert(is_compare_exchange_available::value == true); static_assert(is_compare_exchange_available::value == true); static_assert(is_compare_exchange_available::value == true); static_assert(is_compare_exchange_available::value == true); static_assert(is_compare_exchange_available::value == false); static_assert(is_compare_exchange_available::value == true); static_assert(is_compare_exchange_available::value == false); static_assert(is_compare_exchange_available::value == true); static_assert(is_compare_exchange_available::value == true); ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads2.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads2.rto/default.1.1.txt index 09ca259d0d..dbfc172552 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads2.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads2.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads.def", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads.def", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads.def", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads3.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads3.rto/default.1.1.txt index 09ca259d0d..dbfc172552 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads3.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads3.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads.def", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads.def", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads.def", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads4.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads4.rto/default.1.1.txt index 09ca259d0d..dbfc172552 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads4.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads4.rto/default.1.1.txt @@ -1,13 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads.def", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads.def", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads.def", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads5.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads5.rto/default.1.1.txt index 234defbf2e..2dc2c96aa6 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads5.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads5.rto/default.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads.def", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads.def", line 9: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads.def", line 13: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads.def", line 119: error: too few arguments in function call template struct is_load_n_available : std::false_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_n_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_load_n_available> : std::true_type {}; template struct is_load_available : std::false_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_load_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_load_available> : std::true_type {}; template struct is_store_n_available : std::false_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_n_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_store_n_available> : std::true_type {}; template struct is_store_available : std::false_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_store_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_store_available> : std::true_type {}; template struct is_exchange_n_available : std::false_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_n_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_exchange_n_available> : std::true_type {}; template struct is_exchange_available : std::false_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_exchange_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_exchange_available> : std::true_type {}; template struct is_compare_exchange_n_available : std::false_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_n_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_compare_exchange_n_available> : std::true_type {}; template struct is_compare_exchange_available : std::false_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_compare_exchange_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_compare_exchange_available> : std::true_type {}; template struct is_add_fetch_available : std::false_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_add_fetch_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_add_fetch_available> : std::true_type {}; template struct is_fetch_add_available : std::false_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_fetch_add_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_fetch_add_available> : std::true_type {}; template struct is_sub_fetch_available : std::false_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_sub_fetch_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_sub_fetch_available> : std::true_type {}; template struct is_fetch_sub_available : std::false_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_fetch_sub_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_fetch_sub_available> : std::true_type {}; template struct is_and_fetch_available : std::false_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_and_fetch_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_and_fetch_available> : std::true_type {}; template struct is_fetch_and_available : std::false_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_fetch_and_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_fetch_and_available> : std::true_type {}; template struct is_xor_fetch_available : std::false_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_xor_fetch_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_xor_fetch_available> : std::true_type {}; template struct is_fetch_xor_available : std::false_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_fetch_xor_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_fetch_xor_available> : std::true_type {}; template struct is_or_fetch_available : std::false_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_or_fetch_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_or_fetch_available> : std::true_type {}; template struct is_fetch_or_available : std::false_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_fetch_or_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_fetch_or_available> : std::true_type {}; template struct is_nand_fetch_available : std::false_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_nand_fetch_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_nand_fetch_available> : std::true_type {}; template struct is_fetch_nand_available : std::false_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; template struct is_fetch_nand_available(), int(), int(), int(), int(), int(), int())) >> : std::true_type {}; template struct is_fetch_nand_available> : std::true_type {}; ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/default.1.1.txt index 61118b5382..17d518fb1e 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/default.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads6.C", line 25: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads6.C", line 26: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads6.C", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads6.C", line 149: warning: extra arguments ignored template struct is_load_available_0 : std::false_type {}; template struct is_load_available_0> : std::true_type {}; template struct is_load_available_4 : std::false_type {}; template struct is_load_available_4(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_3 : std::false_type {}; template struct is_load_available_3(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_2 : std::false_type {}; template struct is_load_available_2> : std::true_type {}; template struct is_load_available_1 : std::false_type {}; template struct is_load_available_1> : std::true_type {}; template struct is_load_available_5 : std::false_type {}; template struct is_load_available_5(), int(), int())) >> : std::true_type {}; template struct is_load_available_10 : std::false_type {}; template struct is_load_available_10(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_9 : std::false_type {}; template struct is_load_available_9(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_8 : std::false_type {}; template struct is_load_available_8(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_7 : std::false_type {}; template struct is_load_available_7(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_6 : std::false_type {}; template struct is_load_available_6(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_11 : std::false_type {}; template struct is_load_available_11(), std::declval(), float())) >> : std::true_type {}; template struct is_load_available_12 : std::false_type {}; template struct is_load_available_12(), std::declval(), 100)) >> : std::true_type {}; template struct is_load_n_available_0 : std::false_type {}; template struct is_load_n_available_0> : std::true_type {}; template struct is_load_n_available_1 : std::false_type {}; template struct is_load_n_available_1> : std::true_type {}; template struct is_load_n_available_2 : std::false_type {}; template struct is_load_n_available_2())) >> : std::true_type {}; template struct is_load_n_available_3 : std::false_type {}; template struct is_load_n_available_3(), int(), int())) >> : std::true_type {}; ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32.1.1.txt index f322582fc5..32199cbc72 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads6.C", line 25: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads6.C", line 26: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads6.C", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads6.C", line 149: warning: extra arguments ignored template struct is_load_available_0 : std::false_type {}; template struct is_load_available_0> : std::true_type {}; template struct is_load_available_4 : std::false_type {}; template struct is_load_available_4(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_3 : std::false_type {}; template struct is_load_available_3(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_2 : std::false_type {}; template struct is_load_available_2> : std::true_type {}; template struct is_load_available_1 : std::false_type {}; template struct is_load_available_1> : std::true_type {}; template struct is_load_available_5 : std::false_type {}; template struct is_load_available_5(), int(), int())) >> : std::true_type {}; template struct is_load_available_10 : std::false_type {}; template struct is_load_available_10(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_9 : std::false_type {}; template struct is_load_available_9(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_8 : std::false_type {}; template struct is_load_available_8(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_7 : std::false_type {}; template struct is_load_available_7(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_6 : std::false_type {}; template struct is_load_available_6(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_11 : std::false_type {}; template struct is_load_available_11(), std::declval(), float())) >> : std::true_type {}; template struct is_load_available_12 : std::false_type {}; template struct is_load_available_12(), std::declval(), 100)) >> : std::true_type {}; template struct is_load_n_available_0 : std::false_type {}; template struct is_load_n_available_0> : std::true_type {}; template struct is_load_n_available_1 : std::false_type {}; template struct is_load_n_available_1> : std::true_type {}; template struct is_load_n_available_2 : std::false_type {}; template struct is_load_n_available_2())) >> : std::true_type {}; template struct is_load_n_available_3 : std::false_type {}; template struct is_load_n_available_3(), int(), int())) >> : std::true_type {}; ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32_cp.1.1.txt index f322582fc5..32199cbc72 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads6.rto/edg_x86_32_cp.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads6.C", line 25: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads6.C", line 26: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads6.C", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads6.C", line 149: warning: extra arguments ignored template struct is_load_available_0 : std::false_type {}; template struct is_load_available_0> : std::true_type {}; template struct is_load_available_4 : std::false_type {}; template struct is_load_available_4(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_3 : std::false_type {}; template struct is_load_available_3(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_2 : std::false_type {}; template struct is_load_available_2> : std::true_type {}; template struct is_load_available_1 : std::false_type {}; template struct is_load_available_1> : std::true_type {}; template struct is_load_available_5 : std::false_type {}; template struct is_load_available_5(), int(), int())) >> : std::true_type {}; template struct is_load_available_10 : std::false_type {}; template struct is_load_available_10(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_9 : std::false_type {}; template struct is_load_available_9(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_8 : std::false_type {}; template struct is_load_available_8(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_7 : std::false_type {}; template struct is_load_available_7(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_6 : std::false_type {}; template struct is_load_available_6(), std::declval(), int())) >> : std::true_type {}; template struct is_load_available_11 : std::false_type {}; template struct is_load_available_11(), std::declval(), float())) >> : std::true_type {}; template struct is_load_available_12 : std::false_type {}; template struct is_load_available_12(), std::declval(), 100)) >> : std::true_type {}; template struct is_load_n_available_0 : std::false_type {}; template struct is_load_n_available_0> : std::true_type {}; template struct is_load_n_available_1 : std::false_type {}; template struct is_load_n_available_1> : std::true_type {}; template struct is_load_n_available_2 : std::false_type {}; template struct is_load_n_available_2())) >> : std::true_type {}; template struct is_load_n_available_3 : std::false_type {}; template struct is_load_n_available_3(), int(), int())) >> : std::true_type {}; ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/default.1.1.txt index b9d555bd54..9e6ba32e0e 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/default.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads7.C", line 25: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads7.C", line 26: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads7.C", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads7.C", line 163: error: static assertion failed static_assert(is_load_available_0::value == false); static_assert(is_load_available_4::value == false); static_assert(is_load_available_3::value == false); static_assert(is_load_available_2::value == false); static_assert(is_load_available_1::value == false); static_assert(is_load_available_5::value == false); static_assert(is_load_available_10::value == false); static_assert(is_load_available_9::value == false); static_assert(is_load_available_8::value == false); static_assert(is_load_available_7::value == false); static_assert(is_load_available_6::value == false); static_assert(is_load_available_11::value == false); static_assert(is_load_n_available_1::value == false); static_assert(is_load_n_available_2::value == false); static_assert(is_load_n_available_3::value == false); static_assert(is_load_available_12::value == false); ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32.1.1.txt index 7d1094d990..077f725d7e 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads7.C", line 25: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads7.C", line 26: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads7.C", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads7.C", line 163: error: static assertion failed static_assert(is_load_available_0::value == false); static_assert(is_load_available_4::value == false); static_assert(is_load_available_3::value == false); static_assert(is_load_available_2::value == false); static_assert(is_load_available_1::value == false); static_assert(is_load_available_5::value == false); static_assert(is_load_available_10::value == false); static_assert(is_load_available_9::value == false); static_assert(is_load_available_8::value == false); static_assert(is_load_available_7::value == false); static_assert(is_load_available_6::value == false); static_assert(is_load_available_11::value == false); static_assert(is_load_n_available_1::value == false); static_assert(is_load_n_available_2::value == false); static_assert(is_load_n_available_3::value == false); static_assert(is_load_available_12::value == false); ^ diff --git a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32_cp.1.1.txt index 7d1094d990..077f725d7e 100644 --- a/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/template/.builtin-atomic-overloads7.rto/edg_x86_32_cp.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"./template/builtin-atomic-overloads7.C", line 25: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./template/builtin-atomic-overloads7.C", line 26: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wpedantic" - ^ - -"./template/builtin-atomic-overloads7.C", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./template/builtin-atomic-overloads7.C", line 163: error: static assertion failed static_assert(is_load_available_0::value == false); static_assert(is_load_available_4::value == false); static_assert(is_load_available_3::value == false); static_assert(is_load_available_2::value == false); static_assert(is_load_available_1::value == false); static_assert(is_load_available_5::value == false); static_assert(is_load_available_10::value == false); static_assert(is_load_available_9::value == false); static_assert(is_load_available_8::value == false); static_assert(is_load_available_7::value == false); static_assert(is_load_available_6::value == false); static_assert(is_load_available_11::value == false); static_assert(is_load_n_available_1::value == false); static_assert(is_load_n_available_2::value == false); static_assert(is_load_n_available_3::value == false); static_assert(is_load_available_12::value == false); ^ diff --git a/tests/tests/imported/gnu/cpp/torture/.predcom-1.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/torture/.predcom-1.rto/default.1.1.txt index 0232d0d379..3cfeae1d18 100644 --- a/tests/tests/imported/gnu/cpp/torture/.predcom-1.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/torture/.predcom-1.rto/default.1.1.txt @@ -1,8 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 6: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wreturn-type" - ^ - "Test_name.c", line 32: warning: missing return statement at end of non-void function "Baz" } ^ diff --git a/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/default.1.1.txt index b2bee753c2..3b02cf0096 100644 --- a/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/default.1.1.txt @@ -7,18 +7,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d NOIPA void nowarn_g0 (struct A0 *p) ^ -"Wfree-nonheap-object-5.C", line 74: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 75: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 77: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Wfree-nonheap-object-5.C", line 81: warning: unknown attribute "noipa" NOIPA void warn_g1 (struct A1 *p) ^ @@ -27,18 +15,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d NOIPA void nowarn_g1 (struct A2 *p) ^ -"Wfree-nonheap-object-5.C", line 99: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 100: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 102: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Wfree-nonheap-object-5.C", line 106: warning: unknown attribute "noipa" NOIPA void warn_g2 (struct A2 *p) ^ @@ -47,15 +23,3 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d NOIPA void nowarn_g2 (struct A2 *p) ^ -"Wfree-nonheap-object-5.C", line 125: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 126: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 128: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_32_cp.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_32_cp.1.1.txt index 3b05abf8ad..1c625c94ce 100644 --- a/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_32_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_32_cp.1.1.txt @@ -1,37 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Wfree-nonheap-object-5.C", line 74: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 75: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 77: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-5.C", line 99: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 100: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 102: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-5.C", line 125: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 126: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 128: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_64_cp.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_64_cp.1.1.txt index 3b05abf8ad..1c625c94ce 100644 --- a/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_64_cp.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.Wfree-nonheap-object-5.rto/edg_x86_64_cp.1.1.txt @@ -1,37 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Wfree-nonheap-object-5.C", line 74: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 75: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 77: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-5.C", line 99: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 100: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 102: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"Wfree-nonheap-object-5.C", line 125: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Wfree-nonheap-object-5.C", line 126: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wfree-nonheap-object" - ^ - -"Wfree-nonheap-object-5.C", line 128: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/warn/.Wmismatched-tags-8.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.Wmismatched-tags-8.rto/default.1.1.txt index 7f54512911..1c625c94ce 100644 --- a/tests/tests/imported/gnu/cpp/warn/.Wmismatched-tags-8.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.Wmismatched-tags-8.rto/default.1.1.txt @@ -1,21 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 7: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 8: warning: unrecognized GCC pragma - #pragma GCC diagnostic error "-Wmismatched-tags" - ^ - -"Test_name.c", line 12: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wmismatched-tags" - ^ - -"Test_name.c", line 16: warning: unrecognized GCC pragma - #pragma GCC diagnostic warning "-Wmismatched-tags" - ^ - -"Test_name.c", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/imported/gnu/cpp/warn/.Wnonnull8.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.Wnonnull8.rto/default.1.1.txt index c82f127675..1c625c94ce 100644 --- a/tests/tests/imported/gnu/cpp/warn/.Wnonnull8.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.Wnonnull8.rto/default.1.1.txt @@ -1,5 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 20: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wnonnull" - ^ - diff --git a/tests/tests/imported/gnu/cpp/warn/.Wredundant-tags-5.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.Wredundant-tags-5.rto/default.1.1.txt index 2aaeb9f8dd..d4bb3929a8 100644 --- a/tests/tests/imported/gnu/cpp/warn/.Wredundant-tags-5.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.Wredundant-tags-5.rto/default.1.1.txt @@ -1,12 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"./warn/Wredundant-tags-5.h", line 18: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./warn/Wredundant-tags-5.h", line 19: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wredundant-tags" - ^ - "./warn/Wredundant-tags-5.h", line 21: warning: "enum class" and "enum struct" cannot be used here (use plain "enum" instead) enum class EC1 fce1 (enum class EC1); ^ @@ -15,18 +7,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d enum class EC1 fce1 (enum class EC1); ^ -"./warn/Wredundant-tags-5.h", line 22: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"./warn/Wredundant-tags-5.h", line 44: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./warn/Wredundant-tags-5.h", line 45: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wredundant-tags" - ^ - "./warn/Wredundant-tags-5.h", line 47: warning: "enum class" and "enum struct" cannot be used here (use plain "enum" instead) enum class EC2 fce2 (enum class EC2); ^ @@ -35,18 +15,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d enum class EC2 fce2 (enum class EC2); ^ -"./warn/Wredundant-tags-5.h", line 50: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - -"./warn/Wredundant-tags-5.h", line 66: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"./warn/Wredundant-tags-5.h", line 67: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wredundant-tags" - ^ - "./warn/Wredundant-tags-5.h", line 69: warning: "enum class" and "enum struct" cannot be used here (use plain "enum" instead) enum class EC3 fce3 (enum class EC3); ^ @@ -55,10 +23,6 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_d enum class EC3 fce3 (enum class EC3); ^ -"./warn/Wredundant-tags-5.h", line 72: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "./warn/Wredundant-tags-5.C", line 19: warning: "enum class" and "enum struct" cannot be used here (use plain "enum" instead) fce1 (enum class EC1) ^ diff --git a/tests/tests/imported/gnu/cpp/warn/.Wunused-label-4.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.Wunused-label-4.rto/default.1.1.txt index f693577335..c2c22e9b33 100644 --- a/tests/tests/imported/gnu/cpp/warn/.Wunused-label-4.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.Wunused-label-4.rto/default.1.1.txt @@ -1,16 +1,4 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics --c++17 Test_name.c -"Test_name.c", line 10: warning: unrecognized GCC pragma - #pragma GCC diagnostic push - ^ - -"Test_name.c", line 11: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wunused-label" - ^ - -"Test_name.c", line 15: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - "Test_name.c", line 12: warning: label "start" was declared but never referenced start: ^ diff --git a/tests/tests/imported/gnu/cpp/warn/.uninit-pr55881.rto/default.1.1.txt b/tests/tests/imported/gnu/cpp/warn/.uninit-pr55881.rto/default.1.1.txt index 8a2cddb4c9..1c625c94ce 100644 --- a/tests/tests/imported/gnu/cpp/warn/.uninit-pr55881.rto/default.1.1.txt +++ b/tests/tests/imported/gnu/cpp/warn/.uninit-pr55881.rto/default.1.1.txt @@ -1,9 +1 @@ fe_only -DTEST_NUMBER=1 --gnu_version=999999 -tused -e 200 --no_wrap --no_wrap_diagnostics Test_name.c -"Test_name.c", line 30: warning: unrecognized GCC pragma - #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" - ^ - -"Test_name.c", line 32: warning: unrecognized GCC pragma - #pragma GCC diagnostic pop - ^ - diff --git a/tests/tests/regressions/.gh-182.rto/default.1.1.txt b/tests/tests/regressions/.gh-182.rto/default.1.1.txt new file mode 100644 index 0000000000..8350ea2378 --- /dev/null +++ b/tests/tests/regressions/.gh-182.rto/default.1.1.txt @@ -0,0 +1 @@ +cpfe -DTEST_NUMBER=1 --diag_error=unrecognized_gcc_pragma --g++ --gnu_version=150000 Test_name.c diff --git a/tests/tests/regressions/.gh-182.rto/default.2.1.txt b/tests/tests/regressions/.gh-182.rto/default.2.1.txt new file mode 100644 index 0000000000..92500e9a42 --- /dev/null +++ b/tests/tests/regressions/.gh-182.rto/default.2.1.txt @@ -0,0 +1 @@ +cpfe -DTEST_NUMBER=2 --diag_error=unrecognized_gcc_pragma --g++ --gnu_version=120000 Test_name.c diff --git a/tests/tests/regressions/.gh-182.rto/default.3.1.txt b/tests/tests/regressions/.gh-182.rto/default.3.1.txt new file mode 100644 index 0000000000..bdf8471441 --- /dev/null +++ b/tests/tests/regressions/.gh-182.rto/default.3.1.txt @@ -0,0 +1 @@ +cpfe -DTEST_NUMBER=3 --diag_error=unrecognized_gcc_pragma --gcc --gnu_version=150000 Test_name.c diff --git a/tests/tests/regressions/.gh-182.rto/default.4.1.txt b/tests/tests/regressions/.gh-182.rto/default.4.1.txt new file mode 100644 index 0000000000..0252bd5b02 --- /dev/null +++ b/tests/tests/regressions/.gh-182.rto/default.4.1.txt @@ -0,0 +1 @@ +cpfe -DTEST_NUMBER=4 --diag_error=unrecognized_gcc_pragma --clang Test_name.c diff --git a/tests/tests/regressions/.gh-182b.rto/default.1.1.txt b/tests/tests/regressions/.gh-182b.rto/default.1.1.txt new file mode 100644 index 0000000000..f84a1ea468 --- /dev/null +++ b/tests/tests/regressions/.gh-182b.rto/default.1.1.txt @@ -0,0 +1,25 @@ +fe_only -DTEST_NUMBER=1 --g++ --gnu_version=150000 Test_name.c +"Test_name.c", line 8: warning: unrecognized GCC pragma + #pragma GCC diagnostic fatal "-Wshadow" // clang only + ^ + +"Test_name.c", line 10: warning: unrecognized GCC pragma + #pragma GCC diagnostic // Kind missing. + ^ + +"Test_name.c", line 11: warning: unrecognized GCC pragma + #pragma GCC diagnostic bogus // Kind unknown. + ^ + +"Test_name.c", line 12: warning: expected a string literal + #pragma GCC diagnostic ignored // Option missing. + ^ + +"Test_name.c", line 13: warning: expected a string literal + #pragma GCC diagnostic ignored -Wshadow // Option not a string literal. + ^ + +"Test_name.c", line 14: warning: expected a string literal + #pragma GCC diagnostic ignored L"-Wshadow" // Option not a narrow string. + ^ + diff --git a/tests/tests/regressions/.gh-182b.rto/default.2.1.txt b/tests/tests/regressions/.gh-182b.rto/default.2.1.txt new file mode 100644 index 0000000000..118b5fc29d --- /dev/null +++ b/tests/tests/regressions/.gh-182b.rto/default.2.1.txt @@ -0,0 +1,29 @@ +fe_only -DTEST_NUMBER=2 --g++ --gnu_version=120000 Test_name.c +"Test_name.c", line 7: warning: unrecognized GCC pragma + #pragma GCC diagnostic ignored_attributes "vendor::" // GCC 13 and later + ^ + +"Test_name.c", line 8: warning: unrecognized GCC pragma + #pragma GCC diagnostic fatal "-Wshadow" // clang only + ^ + +"Test_name.c", line 10: warning: unrecognized GCC pragma + #pragma GCC diagnostic // Kind missing. + ^ + +"Test_name.c", line 11: warning: unrecognized GCC pragma + #pragma GCC diagnostic bogus // Kind unknown. + ^ + +"Test_name.c", line 12: warning: expected a string literal + #pragma GCC diagnostic ignored // Option missing. + ^ + +"Test_name.c", line 13: warning: expected a string literal + #pragma GCC diagnostic ignored -Wshadow // Option not a string literal. + ^ + +"Test_name.c", line 14: warning: expected a string literal + #pragma GCC diagnostic ignored L"-Wshadow" // Option not a narrow string. + ^ + diff --git a/tests/tests/regressions/.gh-182b.rto/default.3.1.txt b/tests/tests/regressions/.gh-182b.rto/default.3.1.txt new file mode 100644 index 0000000000..0a3fe20fdc --- /dev/null +++ b/tests/tests/regressions/.gh-182b.rto/default.3.1.txt @@ -0,0 +1,37 @@ +fe_only -DTEST_NUMBER=3 --g++ --gnu_version=40500 Test_name.c +"Test_name.c", line 4: warning: unrecognized GCC pragma + #pragma GCC diagnostic push // GCC 4.6 and later + ^ + +"Test_name.c", line 7: warning: unrecognized GCC pragma + #pragma GCC diagnostic ignored_attributes "vendor::" // GCC 13 and later + ^ + +"Test_name.c", line 8: warning: unrecognized GCC pragma + #pragma GCC diagnostic fatal "-Wshadow" // clang only + ^ + +"Test_name.c", line 9: warning: unrecognized GCC pragma + #pragma GCC diagnostic pop extra text // Trailing text is ignored. + ^ + +"Test_name.c", line 10: warning: unrecognized GCC pragma + #pragma GCC diagnostic // Kind missing. + ^ + +"Test_name.c", line 11: warning: unrecognized GCC pragma + #pragma GCC diagnostic bogus // Kind unknown. + ^ + +"Test_name.c", line 12: warning: expected a string literal + #pragma GCC diagnostic ignored // Option missing. + ^ + +"Test_name.c", line 13: warning: expected a string literal + #pragma GCC diagnostic ignored -Wshadow // Option not a string literal. + ^ + +"Test_name.c", line 14: warning: expected a string literal + #pragma GCC diagnostic ignored L"-Wshadow" // Option not a narrow string. + ^ + diff --git a/tests/tests/regressions/.gh-182b.rto/default.4.1.txt b/tests/tests/regressions/.gh-182b.rto/default.4.1.txt new file mode 100644 index 0000000000..b23f8b4884 --- /dev/null +++ b/tests/tests/regressions/.gh-182b.rto/default.4.1.txt @@ -0,0 +1,25 @@ +fe_only -DTEST_NUMBER=4 --clang Test_name.c +"Test_name.c", line 7: warning: unrecognized GCC pragma + #pragma GCC diagnostic ignored_attributes "vendor::" // GCC 13 and later + ^ + +"Test_name.c", line 10: warning: unrecognized GCC pragma + #pragma GCC diagnostic // Kind missing. + ^ + +"Test_name.c", line 11: warning: unrecognized GCC pragma + #pragma GCC diagnostic bogus // Kind unknown. + ^ + +"Test_name.c", line 12: warning: expected a string literal + #pragma GCC diagnostic ignored // Option missing. + ^ + +"Test_name.c", line 13: warning: expected a string literal + #pragma GCC diagnostic ignored -Wshadow // Option not a string literal. + ^ + +"Test_name.c", line 14: warning: expected a string literal + #pragma GCC diagnostic ignored L"-Wshadow" // Option not a narrow string. + ^ + diff --git a/tests/tests/regressions/gh-182.sft.cpp b/tests/tests/regressions/gh-182.sft.cpp new file mode 100644 index 0000000000..b21b07450c --- /dev/null +++ b/tests/tests/regressions/gh-182.sft.cpp @@ -0,0 +1,16 @@ +//type:cp +//remark:[GH #182] "GCC diagnostic" pragmas were not recognized +//options:--g++ --gnu_version=150000:--g++ --gnu_version=120000:--gcc --gnu_version=150000:--clang +//options_all:--diag_error=unrecognized_gcc_pragma +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +int f(int unused) { return 0; } +#pragma GCC diagnostic pop + +#define IGNORE_SHADOW _Pragma("GCC diagnostic ignored \"-Wshadow\"") +void g(int *p) { + _Pragma("GCC diagnostic push") + IGNORE_SHADOW + *p = 0; + _Pragma("GCC diagnostic pop") +} diff --git a/tests/tests/regressions/gh-182b.sft.cpp b/tests/tests/regressions/gh-182b.sft.cpp new file mode 100644 index 0000000000..51d867f49d --- /dev/null +++ b/tests/tests/regressions/gh-182b.sft.cpp @@ -0,0 +1,15 @@ +//type:fp +//remark:[GH #182] Malformed and version-specific "GCC diagnostic" pragmas +//options:--g++ --gnu_version=150000:--g++ --gnu_version=120000:--g++ --gnu_version=40500:--clang +#pragma GCC diagnostic push // GCC 4.6 and later +#pragma GCC diagnostic warning "-Wshadow" +#pragma GCC diagnostic error "-Wreturn-type" +#pragma GCC diagnostic ignored_attributes "vendor::" // GCC 13 and later +#pragma GCC diagnostic fatal "-Wshadow" // clang only +#pragma GCC diagnostic pop extra text // Trailing text is ignored. +#pragma GCC diagnostic // Kind missing. +#pragma GCC diagnostic bogus // Kind unknown. +#pragma GCC diagnostic ignored // Option missing. +#pragma GCC diagnostic ignored -Wshadow // Option not a string literal. +#pragma GCC diagnostic ignored L"-Wshadow" // Option not a narrow string. +int x;