llvm-project/clang/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp

11 lines
196 B
C++

// RUN: %clang_cc1 -fsyntax-only -std=c++0x -verify %s
template<typename T>
struct X {
void f() {}
};
template inline void X<int>::f(); // expected-error{{'inline'}}
// FIXME: test constexpr