Files
clice/tests/data/document_links/main.cpp
ykiko 4926b4ac32 test(document links): add __has_embed integration tests
Cover both existing-file (produces link) and missing-file (no link)
cases for __has_embed directives.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 16:05:54 +08:00

21 lines
293 B
C++

#include "header_a.h"
#include "header_b.h"
int x = 1;
#include "header_c.h"
const char data[] = {
#embed "data.bin"
};
#if __has_embed("data.bin")
int has_embed_found = 1;
#endif
#if __has_embed("no_such_file.bin")
int has_embed_not_found = 1;
#endif
int main() {
return a + b + c;
}