[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / ParserHLSL / hlsl_groupshared.cpp
blobeaa195a41147141bf4e68416425f7e4744804c1b
1 // RUN: %clang_cc1 %s -verify
2 extern groupshared float f; // expected-error{{unknown type name 'groupshared'}}
4 extern float groupshared f2; // expected-error{{expected ';' after top level declarator}}
6 namespace {
7 float groupshared [[]] f3 = 12; // expected-error{{expected ';' after top level declarator}}
10 // expected-error@#fgc{{expected ';' after top level declarator}}
11 // expected-error@#fgc{{a type specifier is required for all declarations}}
12 float groupshared const f4 = 12; // #fgc