14 lines · plain
1// RUN: %clang %s -Xclang -verify -fsyntax-only2// RUN: %clang %s -cl-no-stdinc -Xclang -verify -DNOINC -fsyntax-only3 4#ifndef NOINC5//expected-no-diagnostics6#endif7 8void test() {9int i = get_global_id(0);10#ifdef NOINC11//expected-error@-2{{use of undeclared identifier 'get_global_id'}}12#endif13}14