1 // RUN: llvm-tblgen %s 2>&1 | FileCheck %s
2 // RUN: llvm-tblgen --no-warn-on-unused-template-args %s 2>&1 | FileCheck %s --check-prefix=CHECK-DISABLED
4 class UnusedClassArg<int foo> {}
6 // CHECK: warning: unused template argument: UnusedClassArg:foo
7 // CHECK-NEXT: class UnusedClassArg<int foo> {}
10 multiclass UnusedMultiClassArg<int foo> {
14 defm : UnusedMultiClassArg<1>;
16 // CHECK: warning: unused template argument: UnusedMultiClassArg::foo
17 // CHECK-NEXT: multiclass UnusedMultiClassArg<int foo> {
20 class NoWarning<int b> {
24 // CHECK-NOT: warning: unused template argument: NoWarning:b
25 // CHECK-DISABLED-NOT: warning