Debian Codegraph @

clang/test/Driver/default-includes.cl

raw
1 // RUN: %clang %s -Xclang -verify -fsyntax-only
2 // RUN: %clang %s -cl-no-stdinc -Xclang -verify -DNOINC -fsyntax-only
3
4 #ifndef NOINC
5 //expected-no-diagnostics
6 #endif
7
8 void test() {
9 int i = get_global_id(0);
10 #ifdef NOINC
11 //expected-error@-2{{use of undeclared identifier 'get_global_id'}}
12 #endif
13 }