aboutsummaryrefslogtreecommitdiff
path: root/clang/test/TableGen/HLSLAttribute-errors.td
blob: fc9473dcc1fb42453180755aea143650dcc6b56c (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: not clang-tblgen -gen-clang-attr-parsed-attr-kinds -I%p/../../include %s -o - 2>&1 | FileCheck %s

include "clang/Basic/Attr.td"

// CHECK: error: HLSLAnnotation Attribute must be lower case.
def HLSLSV_FAKE: HLSLAnnotationAttr {
  let Spellings = [HLSLAnnotation<"SV_Fake">];
  let Subjects = SubjectList<[ParmVar, Field]>;
  let LangOpts = [HLSL];
  let Documentation = [HLSLSV_GroupThreadIDDocs];
}