aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaOpenCL/recovery-expr.cl
blob: 902b10dbb57899035e4ab2b43389964e935fbae4 (plain)
1
2
3
4
5
6
7
// 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}}
}