// RUN: %clang_cc1 -verify %s

@interface A
@end

template<typename T>
struct X0 {
  void f(T); // expected-error{{interface type 'A' cannot be passed by value}}
};

X0<A> x0a; // expected-note{{instantiation}}


Add another test case for r101029, which verifies that we now correctly diagnose instantiation of a function parameter with Objective-C class type (since Objective-C classes can't be passed by value).
Add another test case for r101029, which verifies that we now
correctly diagnose instantiation of a function parameter with Objective-C
class type (since Objective-C classes can't be passed by value).


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@101031 91177308-0d34-0410-b5e6-96231b3b80d8
