forked from OSchip/llvm-project
11 lines
327 B
C++
11 lines
327 B
C++
template<typename T> struct S {
|
|
__attribute__((always_inline)) static int f() { return 0; }
|
|
__attribute__((always_inline, visibility("hidden"))) static int g() { return 0; }
|
|
};
|
|
|
|
extern template struct S<int>;
|
|
|
|
template<typename T> T min(T a, T b) { return a < b ? a : b; }
|
|
|
|
extern decltype(min(1, 2)) instantiate_min_decl;
|