blob: bed39d7ffb067266fb6b0e21a6d68832f14b75e9 [file] [log] [blame]
Eli Friedman264c1f82009-11-19 03:14:00 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3template<class T>
4static int alpha(T c)
5{
6 return *c; // expected-error{{indirection requires pointer operand}}
7}
8
9template<class T>
10static void
11_shexp_match()
12{
13 switch(1) {
14 case 1:
15 alpha(1); // expected-note{{instantiation of function template}}
16 }
17}
18int main() {
19 _shexp_match<char>(); // expected-note{{instantiation of function template}}
20 return 0;
21}