bolt/deps/llvm-18.1.8/clang/test/SemaOpenCL/invalid-assignment-constant-address-space.cl
2025-02-14 19:21:04 +01:00

7 lines
169 B
Common Lisp

// 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}}
}