Nicolai Haehnle | 19ebaa7 | 2018-03-06 13:48:47 +0000 | [diff] [blame] | 1 | // RUN: not llvm-tblgen %s 2>&1 | FileCheck %s |
Nicolai Haehnle | a9e8c1d | 2018-03-06 13:48:39 +0000 | [diff] [blame] | 2 | |
| 3 | // Check that a large integer is not truncated to a small bit sequence. |
| 4 | // |
Nicolai Haehnle | 19ebaa7 | 2018-03-06 13:48:47 +0000 | [diff] [blame] | 5 | // CHECK: error: Initializer of 'X' in 'anonymous_0' could not be fully resolved: |
Chris Lattner | a6aff65 | 2003-08-03 18:28:09 +0000 | [diff] [blame] | 6 | |
| 7 | def { |
| 8 | bits<2> X = 5; // bitfield is too small, reject |
| 9 | } |