Douglas Gregor | 7683a3f | 2010-04-12 07:51:13 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify %s |
2 | |||||
3 | @interface A | ||||
4 | @end | ||||
5 | |||||
6 | template<typename T> | ||||
7 | struct X0 { | ||||
8 | void f(T); // expected-error{{interface type 'A' cannot be passed by value}} | ||||
9 | }; | ||||
10 | |||||
11 | X0<A> x0a; // expected-note{{instantiation}} | ||||
12 |