Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaTemplate / instantiate-case.cpp
blob1cc2d5d6c62a2f304c5cd68f32b012633339d154
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 template<class T>
4 static int alpha(T c)
6 return *c; // expected-error{{indirection requires pointer operand}}
9 template<class T>
10 static void
11 _shexp_match()
13 switch(1) {
14 case 1:
15 alpha(1); // expected-note{{instantiation of function template}}
18 int main() {
19 _shexp_match<char>(); // expected-note{{instantiation of function template}}
20 return 0;