1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify
2 extern groupshared float f;
3 extern float groupshared f; // Ok, redeclaration?
6 // NOTE:lambda is not enabled except for hlsl202x.
7 // expected-error@+2 {{expected expression}}
8 // expected-warning@+1 {{'auto' type specifier is a C++11 extension}}
9 auto l = []() groupshared {};
11 float groupshared [[]] i = 12;
13 float groupshared const i2 = 12;