aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-non-type-template-parameter.cpp
blob: 414e62b13a032803ce30c5207769483e694c0931 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -fsyntax-only -verify %s

// PR5311
template<typename T>
class StringSwitch {
public:
  template<unsigned N>
  void Case(const char (&S)[N], const int & Value) {
  }
};

int main(int argc, char *argv[]) {
  (void)StringSwitch<int>();
}