Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-expinst.C
blob20898736983286144540fea5944b76c904feb1b8
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" }