]> git.ozlabs.org Git - ccan/blobdiff - ccan/bytestring/test/compile_fail-BYTESTRING-2.c
coroutine: Remove on-stack buffers from testcases
[ccan] / ccan / bytestring / test / compile_fail-BYTESTRING-2.c
index 87dd7c7d2ed14bff965bbba30dd09248c2362ffc..d4a610e250e5bb0c0d3620e11fca944dac961a18 100644 (file)
@@ -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;