blob: 902b10dbb57899035e4ab2b43389964e935fbae4 [file] [log] [blame]
Haojian Wu4b5b7c72020-07-20 15:06:40 +02001// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=clc++ -frecovery-ast
2
3void kernel nocrash() {
4 constant int L1 = 0;
5
6 private int *constant L2 = L1++; // expected-error {{read-only variable is not assignable}}
7}