blob: a801d7d3cd4c77bb5590677ac59ec8d9ad701b40 [file] [log] [blame]
#include <stdio.h>
#include <valgrind.h>
#define INLINE inline __attribute__((always_inline))
class X
{
public:
template <typename T>
static INLINE T temp_member_func_b(T argb) {
static T locb = 0;
if (argb > 0)
locb += argb;
return locb;
}
template <typename T>
static /*INLINE*/ T temp_member_func_noinline(T arga) {
return temp_member_func_b(arga);
}
};
int main() {
int result;
result = X::temp_member_func_noinline(result);
return 0;
}