We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e347a commit a1e3d56Copy full SHA for a1e3d56
clang/test/Preprocessor/embed-reject-device-files.c
@@ -0,0 +1,16 @@
1
+// RUN: %clang_cc1 -std=c23 %s -fsyntax-only -verify
2
+// REQUIRES: system-linux
3
+
4
5
+int urandom[] = {
6
+#embed "/dev/urandom" //expected-error {{device files are not yet supported by '#embed' directive}}
7
+};
8
+int random[] = {
9
+#embed "/dev/random" //expected-error {{device files are not yet supported by '#embed' directive}}
10
11
+int zero[] = {
12
+#embed "/dev/zero" //expected-error {{device files are not yet supported by '#embed' directive}}
13
14
+int null[] = {
15
+#embed "/dev/null" //expected-error {{device files are not yet supported by '#embed' directive}}
16
0 commit comments