summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/parameters.mm
blob: aab1fbda4dd8b4c3a6f78eef01f0399bbcdfdb30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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}}

OpenPOWER on IntegriCloud