opnsense-src/test/SemaTemplate/instantiate-non-type-template-parameter.cpp

15 lines
255 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-11-04 10:04:32 -05:00
// 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>();
}