aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/embed-reject-device-files-lin.c
blob: 4c9744ad86d4400a4dc0389dff368d744330853d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -std=c23 %s -fsyntax-only -verify
// REQUIRES: system-linux


int urandom[] = {
#embed "/dev/urandom" //expected-error {{device files are not yet supported by '#embed' directive}}
};
int random[] = {
#embed "/dev/random" //expected-error {{device files are not yet supported by '#embed' directive}}
};
int zero[] = {
#embed "/dev/zero" //expected-error {{device files are not yet supported by '#embed' directive}}
};
int null[] = {
#embed "/dev/null" //expected-error {{device files are not yet supported by '#embed' directive}}
};