[AMDGPU] Removed superfluous predicate. NFC.
[llvm-project.git] / clang / test / Driver / default-includes.cl
blob5b96052a54cf1d08383dfe91274b6ced8876c420
1 // RUN: %clang %s -Xclang -verify -fsyntax-only
2 // RUN: %clang %s -cl-no-stdinc -Xclang -verify -DNOINC -fsyntax-only
4 #ifndef NOINC
5 //expected-no-diagnostics
6 #endif
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