1 // RUN: not llvm-tblgen -gen-subtarget -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s
2 // Verify that processors with same names result in an error.
4 include "llvm/Target/Target.td"
8 def ProcessorB : ProcessorModel<"NameA", NoSchedModel, []>;
10 // CHECK: [[FILE]]:[[@LINE+2]]:5: error: Processor `NameA` is already defined.
11 // CHECK: [[FILE]]:[[@LINE-3]]:5: note: Previous definition here.
12 def ProcessorA : ProcessorModel<"NameA", NoSchedModel, []>;