2011-10-06 21:39:59 +08:00
|
|
|
// RUN: llvm-tblgen < %s
|
2010-03-21 07:08:45 +08:00
|
|
|
// XFAIL: vg_leak
|
2005-09-09 02:47:43 +08:00
|
|
|
|
|
|
|
class foo<int X> { int THEVAL = X; }
|
|
|
|
def foo_imp : foo<1>;
|
|
|
|
|
|
|
|
def x {
|
|
|
|
foo Y = foo_imp; // This works.
|
|
|
|
}
|
|
|
|
|
|
|
|
def X {
|
|
|
|
foo Y = foo<1>; // This should work too, synthesizing a new foo<1>.
|
|
|
|
}
|