repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[llvm-dlltool] Respect NONAME keyword
[llvm-complete.git]
/
test
/
TableGen
/
cast-typeerror.td
blob
af33a01d27e8885d9a4e0d01a7e15ab34d955e2e
1
// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s
2
// XFAIL: vg_leak
3
4
class A;
5
class B;
6
7
def A0 : A;
8
9
class C<string name> {
10
B b = !cast<B>(name);
11
}
12
13
// CHECK: error: Expected type 'B', got 'A' in: !cast<B>("A0")
14
def Test : C<"A0">;