llvm-project/clang/test/Preprocessor/embed-reject-device-files-win.c
Mariya Podchishchaeva 0f526498a1
[clang] Reject character devices in #embed for now (#135370)
See https://github.com/llvm/llvm-project/issues/126629 . Right now they
are not supported properly and support requires modifying several layers
of LLVM. For now simply reject them while proper support is being
developed to avoid potential security problems.
2025-04-15 09:43:01 +02:00

8 lines
201 B
C

// RUN: %clang_cc1 -std=c23 %s -fsyntax-only -verify
// REQUIRES: system-windows
int null[] = {
#embed "NUL" limit(1) //expected-error {{device files are not yet supported by '#embed' directive}}
};