1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/TableGen/eq-unset.td
Daniel Sanders 50baaf55a8 Fix assertion on !eq(?, 0)
Instead of asserting, emit a proper error message
2020-02-18 14:05:55 -08:00

10 lines
266 B
TableGen

// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
// CHECK: error: expected value to be a typed value, got '?'
def Z1 {
// This one caused an assertion because the value was an UnsetInit
// and !eq() can only accept TypedInit's.
bit D = !if(!eq(?, 0), 1, 0);
}