1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -std=hlsl202x -o - -fsyntax-only %s -verify
3 // template not allowed inside cbuffer.
5 // expected-error@+2 {{invalid declaration inside cbuffer}}
7 T foo(T t) { return t;}
11 // expected-error@+2 {{invalid declaration inside cbuffer}}
16 // typealias not allowed inside cbuffer.
18 // expected-error@+1 {{invalid declaration inside cbuffer}}