Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaOpenCL / invalid-assignment-constant-address-space.cl
blob1734b258937ed64c71081f0bce260089351aad91
1 // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
3 int constant c[3] = {0};
5 void foo(void) {
6 c[0] = 1; //expected-error{{read-only variable is not assignable}}