
This patch implements __unaligned (MS extension) as a proper type qualifier (before that, it was implemented as an ignored attribute). It also fixes PR27367 and PR27666. Differential Revision: http://reviews.llvm.org/D20103 llvm-svn: 269220
9 lines
236 B
C
9 lines
236 B
C
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
|
|
|
|
#define OPENCL_CONSTANT 8388354
|
|
int __attribute__((address_space(OPENCL_CONSTANT))) c[3] = {0};
|
|
|
|
void foo() {
|
|
c[0] = 1; //expected-error{{read-only variable is not assignable}}
|
|
}
|