sdt_types.c
Roland McGrath
roland@redhat.com
Fri Nov 12 00:09:00 GMT 2010
To test the case that's hard, you need to use an argument of "array", not
"&array". This file should test that. It's not particularly useful to
test "&array" also, since that is just a pointer type, and those are
already tested.
To be thoroughly useful about covering lots of types, this file should be
compiled with a variety of -ansi/-pedantic/-std=foo options.
It would be useful to cover C++ too. That could be done just by including
-xc++ in the set of options to permute through. The C99 initializers would
need to be replaced with plain ordered initializer lists to compile in C++,
or with -ansi/-std=c89.
It would also be useful to have some cases in there that use a string
constant as the argument. It could also use some cases that distinguish
whether the signedness handling is doing the right thing for various sizes
of integral type.
Thanks,
Roland
More information about the Systemtap
mailing list