blob: 8113e94def5afe61100d5738c9b133a2e436debd [file] [log] [blame]
Richard Smithd28ac5b2014-03-22 23:33:22 +00001template<typename T> struct S {
2 __attribute__((always_inline)) static int f() { return 0; }
3 __attribute__((always_inline, visibility("hidden"))) static int g() { return 0; }
4};
5
6extern template struct S<int>;
Richard Smith04d05b52014-03-23 00:27:18 +00007
8template<typename T> T min(T a, T b) { return a < b ? a : b; }
9
10extern decltype(min(1, 2)) instantiate_min_decl;