clang/test/ParserHLSL/group_shared.hlsl
raw| 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? |
| 4 | |
| 5 | |
| 6 | // expected-warning@+3 {{lambdas are a C++11 extension}} |
| 7 | // expected-error@+2 {{expected body of lambda expression}} |
| 8 | // expected-warning@+1 {{'auto' type specifier is a C++11 extension}} |
| 9 | auto l = []() groupshared {}; |
| 10 | |
| 11 | float groupshared [[]] i = 12; |
| 12 | |
| 13 | float groupshared const i2 = 12; |