master
 1
 2#include <stdlib.h>
 3#include <string.h>
 4int main(void) {
 5    // Raw bytes; not a C string
 6    const char data[] = {
 7#embed <foo.data>
 8    };
 9    const char *expected = "This text is the contents of foo.data";
10    if (sizeof data == strlen(expected) && memcmp(data, expected, sizeof data) == 0) {
11        return EXIT_SUCCESS;
12    } else {
13        return EXIT_FAILURE;
14    }
15}