1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -std=hlsl202x -o - -fsyntax-only %s -verify
2 extern groupshared float f;
3 extern float groupshared f; // Ok, redeclaration?
6 // expected-warning@#gs_lambda {{lambdas are a clang HLSL extension}}
7 // expected-error@#gs_lambda {{expected body of lambda expression}}
8 // expected-warning@#gs_lambda {{'auto' type specifier is a HLSL 202y extension}}
9 auto l = []() groupshared {}; // #gs_lambda
11 float groupshared [[]] i = 12;
13 float groupshared const i2 = 12;