Commit 08803022 authored by David Gibson's avatar David Gibson

bytestring: Add rational comment to testcase

Reviewing the previous patch it took me some time to work out what the
purpose of the compile_fail-BYTESTRING-2.c test.  Add a comment to avoid
that in future.
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 5e6869e7
......@@ -4,6 +4,12 @@
#include <ccan/bytestring/bytestring.h>
/*
* BYTESTRING() can only be used safely on a literal string (or,
* strictly, something whose size can be determined with ARRAY_SIZE().
* This checks that it correctly fails to compile if used on a
* non-array pointer.
*/
int main(int argc, char *argv[])
{
struct bytestring bs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment