This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
sdt_types.c
- From: Roland McGrath <roland at redhat dot com>
- To: systemtap at sources dot redhat dot com
- Date: Thu, 11 Nov 2010 16:09:41 -0800 (PST)
- Subject: sdt_types.c
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