summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/BitsInitOverflow.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/TableGen/BitsInitOverflow.td')
-rw-r--r--llvm/test/TableGen/BitsInitOverflow.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/TableGen/BitsInitOverflow.td b/llvm/test/TableGen/BitsInitOverflow.td
index b2804053d25..cf5d1ca85bc 100644
--- a/llvm/test/TableGen/BitsInitOverflow.td
+++ b/llvm/test/TableGen/BitsInitOverflow.td
@@ -1,8 +1,8 @@
-// RUN: llvm-tblgen %s | FileCheck %s
+// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
// Check that a large integer is not truncated to a small bit sequence.
//
-// CHECK: bits<2> X = { !cast<bits<2>>(5){1}, !cast<bits<2>>(5){0} };
+// CHECK: error: Initializer of 'X' in 'anonymous_0' could not be fully resolved:
def {
bits<2> X = 5; // bitfield is too small, reject
OpenPOWER on IntegriCloud