[DTrace-devel] [PATCH] test: Add tests for option "stdc"

Nick Alcock nick.alcock at oracle.com
Fri Apr 28 16:11:38 UTC 2023


On 5 Apr 2023, eugene loh verbalised:
> +/* @@runtest-opts: -C -xstdc=a */
> +
> +BEGIN
> +{
> +#ifdef __STDC__
> +	exit(0);
> +#else
> +	exit(1);
> +#endif
> +}

Horribly repetitive, but that's what happens when you have an option
whose meanings are a mass of backward-compat crap and horribly
repetitive.

Reviewed-by: Nick Alcock <nick.alcock at oracle.com>, with the caveat that
it would be nice if the test for -traditional-cpp actually tested for
some crazy thing you could only do with traditional CPP, not just for
-stdc being off.


We should honestly probably add a couple more options here that do
actually useful things, probably gnu99, c11, and gnu11 (probably using
multi-letter options that are actually memorableto do it) 

-- 
NULL && (void)



More information about the DTrace-devel mailing list