Nicolai Haehnle | 2ad1901 | 2018-03-19 14:14:28 +0000 | [diff] [blame^] | 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">; |