Sign in
llvm
/
clang
/
7eae76521f53cd9e87daa7c42dd7f5a990d9f24e
/
.
/
test
/
SemaOpenCL
/
local.cl
blob: 8637cfff30d1036e192b10e052396a19df9b6e8d [
file
] [
log
] [
blame
]
//
RUN
:
%
clang_cc1
%
s -verify -pedantic -fsyntax-only
__kernel void foo
(
void
)
{
__local int i
;
__local int j
=
2
; // expected-error {{'__local' variable cannot have an initializer}}
}