From e87de41189b1591afd88e4dc12eeb17e06b77d3e Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Wed, 16 Jun 2010 23:24:12 +0000 Subject: let the '!eq' expression support 'int' and 'bit' types git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106171 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/TableGen/eqbit.td | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/TableGen/eqbit.td (limited to 'test/TableGen') diff --git a/test/TableGen/eqbit.td b/test/TableGen/eqbit.td new file mode 100644 index 0000000000..3953252c41 --- /dev/null +++ b/test/TableGen/eqbit.td @@ -0,0 +1,11 @@ +// RUN: tblgen %s | FileCheck %s +// XFAIL: vg_leak +// CHECK: a = 6 +// CHECK: a = 5 + +class A { + int a = !if(!eq(b, 1), 5, 6); +} + +def X : A<0>; +def Y : A; -- cgit v1.2.3-18-g5258