1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -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@+2 {{invalid declaration inside cbuffer}}
19 // expected-warning@+1 {{alias declarations are a C++11 extension}}