llvm-for-llvmta/tools/clang/test/SemaOpenCL/recovery-expr.cl

8 lines
228 B
Common Lisp
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=clc++ -frecovery-ast
void kernel nocrash() {
constant int L1 = 0;
private int *constant L2 = L1++; // expected-error {{read-only variable is not assignable}}
}