mdcompositetype-templateparams.ll 470 B

123456789101112
  1. ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
  2. ; CHECK: invalid template parameter
  3. ; CHECK-NEXT: !2 = !DICompositeType(
  4. ; CHECK-SAME: templateParams: !1
  5. ; CHECK-NEXT: !1 = !{!0}
  6. ; CHECK-NEXT: !0 = !DIBasicType(
  7. !named = !{!0, !1, !2}
  8. !0 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
  9. !1 = !{!0}
  10. !2 = !DICompositeType(tag: DW_TAG_structure_type, name: "IntTy", size: 32, align: 32, templateParams: !1)