[TableGen] Correctly generate implicit anonymous prototype defs in multiclasses
[oota-llvm.git] / test / TableGen / MultiClassDefName.td
index 69b951d378a19c2424471674e4fe1b067066fbb2..811d92667eb2be17c534ffdb8aea67ee8dfc38a2 100644 (file)
@@ -29,3 +29,13 @@ multiclass MC<string name> {
 
 defm : MC<"foo">;
 
+multiclass MC2<string name> {
+  def there : Outer<C<name> >;
+}
+
+// Ensure that we've correctly captured the reference to name from the implicit
+// anonymous C def in the template parameter list of Outer.
+// CHECK-NOT: MC2::name
+
+defm : MC2<"bar">;
+