OSDN Git Service

PR c++/51406
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-expinst.C
1 // { dg-options -std=c++0x }
2 // Error: Explicit instantiation of a function template shall not use the
3 // inline or constexpr specifiers
4 template<class T> constexpr inline T bar(T x) { return x; }
5 template constexpr inline float bar(float x); // { dg-error "specifier" }