bolt/deps/llvm-18.1.8/clang/test/SemaOpenCL/invalid-assignment-constant-address-space.cl

8 lines
169 B
Common Lisp
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
int constant c[3] = {0};
void foo(void) {
c[0] = 1; //expected-error{{read-only variable is not assignable}}
}