blob: 4b0f1e63baf3476b4fdca7e658c98c68d2502c5c [file] [edit]
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -verify %s
RWByteAddressBuffer gBuf : register(u0);
[numthreads(1,1,1)]
void main() {
// expected-error@+1 {{unknown type name 'volatile'}}
volatile int x = 3;
gBuf.Store(0, x);
}