Lines Matching +refs:dg +refs:prune +refs:output
252 creating the output of @file{configure}.
394 source tree, and the output manual must have the same name as the
432 man pages. To improve the man page output, some special Texinfo
439 where for printed output the effect of @samp{@@code} is better than
440 that of @samp{@@option} but for man page output a different effect is
732 be used for generated files such as Bison output files which are not
921 In the @file{gcc.dg} testsuite, it is often necessary to test that an
929 /* @{ dg-bogus "warning" "warning in place of error" @} */
930 /* @{ dg-error "@var{regexp}" "@var{message}" @{ target *-*-* @} @var{line} @} */
941 In @file{gcc.dg} tests, @code{__typeof__} is sometimes used to make
943 @file{gcc.dg/c99-condexpr-1.c}. The more subtle uses depend on the
945 standard; see, for example, @file{gcc.dg/c99-intconst-1.c}.
988 * Add Options:: Features for @code{dg-add-options}
989 * Require Support:: Variants of @code{dg-require-@var{support}}
990 * Final Actions:: Commands for use in @code{dg-final}
997 with @code{dg-}. Some of these are defined within DejaGnu and others
1011 @item @{ dg-do @var{do-what-keyword} [@{ target/xfail @var{selector} @}] @}
1030 tests by redefining @code{dg-do-what-default} within the @code{.exp}
1041 directive @code{dg-xfail-if}.
1047 @item @{ dg-options @var{options} [@{ target @var{selector} @}] @}
1052 @item @{ dg-add-options @var{feature} @dots{} @}
1056 all @code{dg-options} directives.
1059 @item @{ dg-additional-options @var{options} [@{ target @var{selector} @}] @}
1071 @item the value defined by an earlier @code{dg-timeout} directive in
1082 @item @{ dg-timeout @var{n} [@{target @var{selector} @}] @}
1086 @item @{ dg-timeout-factor @var{x} [@{ target @var{selector} @}] @}
1094 @item @{ dg-skip-if @var{comment} @{ @var{selector} @} [@{ @var{include-opts} @} [@{ @var{exclude-o…
1116 /* @{ dg-skip-if "" @{ *-*-* @} @{ "-Os" @} @{ "" @} @} */
1122 /* @{ dg-skip-if "" @{ *-*-* @} @{ "-O2 -g" @} @{ "" @} @} */
1128 /* @{ dg-skip-if "" @{ *-*-* @} @{ "-O2" "-O3" @} @{ "" @} @} */
1134 /* @{ dg-skip-if "" @{ *-*-* @} @{ "*" @} @{ "-Os" @} @} */
1141 /* @{ dg-skip-if "" @{ *-*-* @} @{ "-O2 -g" "-O3 -g" @} @{ "-fpic" @} @} */
1144 @item @{ dg-require-effective-target @var{keyword} [@{ @var{selector} @}] @}
1150 This directive must appear after any @code{dg-do} directive in the test
1151 and before any @code{dg-additional-sources} directive.
1154 @item @{ dg-require-@var{support} args @}
1156 These directives must appear after any @code{dg-do} directive in the test
1157 and before any @code{dg-additional-sources} directive.
1166 @item @{ dg-xfail-if @var{comment} @{ @var{selector} @} [@{ @var{include-opts} @} [@{ @var{exclude…
1168 @code{dg-skip-if}) are met. This does not affect the execute step.
1170 @item @{ dg-xfail-run-if @var{comment} @{ @var{selector} @} [@{ @var{include-opts} @} [@{ @var{exc…
1172 the same as for @code{dg-skip-if}) are met.
1178 @item @{ dg-shouldfail @var{comment} [@{ @var{selector} @} [@{ @var{include-opts} @} [@{ @var{excl…
1180 conditions (which are the same as for @code{dg-skip-if}) are met.
1188 @item @{ dg-error @var{regexp} [@var{comment} [@{ target/xfail @var{selector} @} [@var{line}] ]] @}
1196 @item @{ dg-warning @var{regexp} [@var{comment} [@{ target/xfail @var{selector} @} [@var{line}] ]] …
1204 @item @{ dg-message @var{regexp} [@var{comment} [@{ target/xfail @var{selector} @} [@var{line}] ]] …
1210 @item @{ dg-bogus @var{regexp} [@var{comment} [@{ target/xfail @var{selector} @} [@var{line}] ]] @}
1217 @item @{ dg-line @var{linenumvar} @}
1220 @code{dg-error}, @code{dg-warning}, @code{dg-message} and @code{dg-bogus}
1224 int a; /* @{ dg-line first_def_a @} */
1225 float a; /* @{ dg-error "conflicting types of" @} */
1226 /* @{ dg-message "previous declaration of" "" @{ target *-*-* @} first_def_a @} */
1229 @item @{ dg-excess-errors @var{comment} [@{ target/xfail @var{selector} @}] @}
1231 to compiler messages that are not handled by @samp{dg-error},
1232 @samp{dg-warning} or @samp{dg-bogus}. For this directive @samp{xfail}
1235 @item @{ dg-prune-output @var{regexp} @}
1236 Prune messages matching @var{regexp} from the test output.
1239 @subsubsection Verify output of the test executable
1242 @item @{ dg-output @var{regexp} [@{ target/xfail @var{selector} @}] @}
1243 This DejaGnu directive compares @var{regexp} to the combined output
1250 @item @{ dg-set-compiler-env-var @var{var_name} "@var{var_value}" @}
1254 @item @{ dg-set-target-env-var @var{var_name} "@var{var_value}" @}
1262 @item @{ dg-additional-files "@var{filelist}" @}
1266 @item @{ dg-additional-sources "@var{filelist}" @}
1274 @item @{ dg-final @{ @var{local-directive} @} @}
1277 Multiple @samp{dg-final} commands are processed in the order in which
1279 of directives that can be used within @code{dg-final}.
1331 specified for the particular test in an earlier @code{dg-options} or
1332 @code{dg-add-options} directive.
1412 for any options added with @code{dg-add-options}.
1416 for any options added with @code{dg-add-options}.
1420 @code{dg-add-options} for any @code{_Float@var{n}} or
2480 STACK_SIZE macro defined by @ref{stack_size_ao,,@code{dg-add-options} feature
2578 @subsection Features for @code{dg-add-options}
2580 The supported values of @var{feature} for directive @code{dg-add-options}
2695 @subsection Variants of @code{dg-require-@var{support}}
2697 A few of the @code{dg-require} directives take arguments.
2700 @item dg-require-iconv @var{codeset}
2704 @item dg-require-profiling @var{profopt}
2708 @item dg-require-stack-check @var{check}
2713 @item dg-require-stack-size @var{size}
2716 @item dg-require-visibility @var{vis}
2722 The original @code{dg-require} directives were defined before there
2727 @item dg-require-alias ""
2730 @item dg-require-ascii-locale ""
2733 @item dg-require-compat-dfp ""
2737 @item dg-require-cxa-atexit ""
2739 This is equivalent to @code{dg-require-effective-target cxa_atexit}.
2741 @item dg-require-dll ""
2744 @item dg-require-dot ""
2747 @item dg-require-fork ""
2750 @item dg-require-gc-sections ""
2753 This is equivalent to @code{dg-require-effective-target gc-sections}.
2755 @item dg-require-host-local ""
2761 @item dg-require-mkfifo ""
2764 @item dg-require-named-sections ""
2766 This is equivalent to @code{dg-require-effective-target named_sections}.
2768 @item dg-require-weak ""
2771 @item dg-require-weak-override ""
2776 @subsection Commands for use in @code{dg-final}
2779 @code{dg-final}.
2790 @item dg-check-dot @var{filename}
2795 @subsubsection Scan the assembly output
2799 Passes if @var{regex} matches text in the test's assembler output.
2802 Passes if @var{regex} does not match text in the test's assembler output.
2806 assembler output.
2809 Passes if @var{regex} matches text in the test's demangled assembler output.
2813 output.
2817 assembly output.
2821 assembly output.
2825 output for selected functions. Each line of expected output starts with the
2826 prefix string @var{prefix} and the expected output for a function as a whole
2837 The first line of the expected output for a function @var{fn} has the form:
2843 Subsequent lines of the expected output also start with @var{prefix}.
2848 assembly output. It then matches the result against the expected
2849 output for a function as a single regular expression. This means that
2854 /* @{ dg-final @{ check-function-bodies "**" "" "-DCHECK_ASM" @} @} */
2938 @subsubsection Check for output files
2941 @item output-exists [@{ target/xfail @var{selector} @}]
2942 Passes if compiler output file exists.
2944 @item output-exists-not [@{ target/xfail @var{selector} @}]
2945 Passes if compiler output file does not exist.
2993 ! @{ dg-final @{ cleanup-modules "mod1 mod2" @} @} ! redundant
2994 ! @{ dg-final @{ keep-modules "mod3 mod4" @} @}
3008 ! @{ dg-final @{ keep-modules "keep1 keep2" @} @} ! just keep these two
3009 ! @{ dg-final @{ keep-modules "" @} @} ! keep all
3012 @item dg-keep-saved-temps "@var{list-of-suffixes-not-to-delete}"
3016 // @{ dg-options "-save-temps -fpch-preprocess -I." @}
3018 // @{ dg-keep-saved-temps ".s" @} ! just keep assembler file
3019 // @{ dg-keep-saved-temps ".s" ".i" @} ! ... and .i
3020 // @{ dg-keep-saved-temps ".ii" ".o" @} ! or just .ii and .o
3067 @item gcc.dg
3069 more modern @samp{dg} harness. Correctness tests for various compiler
3078 @item gcc.dg/compat
3082 @item gcc.dg/cpp
3084 @item gcc.dg/debug
3087 @item gcc.dg/format
3091 @item gcc.dg/noncompile
3096 @item gcc.dg/special
3144 Test @command{gcov} output using @file{gcov.exp}, which in turn uses the
3153 @item @code{dg-*.c}
3170 @item @{ dg-lto-do @var{do-what-keyword} @}
3185 tests by redefining @code{dg-do-what-default} within the @code{.exp}
3188 Unlike @code{dg-do}, @code{dg-lto-do} does not support an optional
3189 @samp{target} or @samp{xfail} list. Use @code{dg-skip-if},
3190 @code{dg-xfail-if}, or @code{dg-xfail-run-if}.
3192 @item @{ dg-lto-options @{ @{ @var{options} @} [@{ @var{options} @}] @} [@{ target @var{selector} @…
3197 @item @{ dg-extra-ld-options @var{options} [@{ target @var{selector} @}]@}
3200 @item @{ dg-suppress-ld-options @var{options} [@{ target @var{selector} @}]@}
3210 in @file{lib/gcc-dg.exp} to compile and run the test program. A typical
3214 @{ dg-options "--coverage" @}
3215 @{ dg-do run @{ target native @} @}
3216 @{ dg-final @{ run-gcov sourcefile @} @}
3219 Checks of @command{gcov} output can include line counts, branch percentages,
3229 @{ dg-final @{ run-gcov branches calls @{ -b sourcefile @} @} @}
3308 @item @{ dg-final-generate @{ @var{local-directive} @} @}
3309 This directive is similar to @code{dg-final}, but the
3312 @item @{ dg-final-use @{ @var{local-directive} @} @}
3408 @item dg-require-*
3412 @item dg-options
3418 @item dg-xfail-if
3448 @item It calls @code{gcc-dg-runtest} and overrides @var{DG_TORTURE_OPTIONS}.
3454 @item It calls @code{dg-pch}.
3457 It is not necessary for a @file{.exp} file that calls @code{gcc-dg-runtest}
3459 @var{DG_TORTURE_OPTIONS} defined in @file{gcc-dg.exp}.
3480 /* @{ dg-do compile @} */
3481 /* @{ dg-options "-O -fgimple" @} */
3515 @file{gcc/testsuite/gcc.dg/gimplefe-*.c}.
3553 and copy and paste the output into the body of the C function.
3556 @file{gcc/testsuite/gcc.dg/rtl}.