Sign in
swiftshader
/
SwiftShader
/
6b7f515c67744bc34f0eb06df72244a9a4e56dc6
/
.
/
third_party
/
llvm-7.0
/
llvm
/
test
/
TableGen
/
cast-typeerror.td
blob: af33a01d27e8885d9a4e0d01a7e15ab34d955e2e [
file
] [
log
] [
blame
]
// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
// XFAIL: vg_leak
class
A
;
class
B
;
def
A0
:
A
;
class
C
<
string
name
>
{
B b
=
!
cast
<
B
>(
name
);
}
// CHECK: error: Expected type 'B', got 'A' in: !cast<B>("A0")
def
Test
:
C
<
"A0"
>;