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">; 10