// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -std=hlsl202x -verify -Wconversion %s export void fn1(groupshared uint Sh) { // expected-error@-1{{'export' attribute is not compatible with 'groupshared' parameter attribute}} Sh = 5; } __attribute__((noinline)) void fn2(groupshared uint Sh) { // expected-error@-1{{'noinline' attribute is not compatible with 'groupshared' parameter attribute}} Sh = 6; } template void fn3(groupshared T A, groupshared T B) { A = B; } export template void fn3(groupshared uint A, groupshared uint B); template __attribute__((noinline)) void fn3(groupshared float A, groupshared float B); // expected-error@-1{{'noinline' attribute is not compatible with 'groupshared' parameter attribute}}