brintos

brintos / llvm-project-archived public Read only

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