blob: 0ee708e2afaa2fc345b854391754ef833902437a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// RUN: not llvm-tblgen -gen-subtarget -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s
// Verify that subtarget features with same names result in an error.
include "llvm/Target/Target.td"
def MyTarget : Target;
def FeatureB : SubtargetFeature<"NameA", "", "", "">;
// CHECK: [[FILE]]:[[@LINE+2]]:5: error: Feature `NameA` is already defined.
// CHECK: [[FILE]]:[[@LINE-3]]:5: note: Previous definition here.
def FeatureA : SubtargetFeature<"NameA", "", "", "">;
|