Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/TableGen/self-reference-recursion.td @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: not llvm-tblgen %s 2>&1 | FileCheck %s | |
2 // XFAIL: vg_leak | |
3 | |
4 class A<string self> { | |
5 int x = !cast<A>(self).x; | |
6 } | |
7 | |
8 // CHECK: error: Attempting to access field 'x' of 'A0' is a forbidden self-reference | |
9 def A0 : A<"A0">; |