fixes a problem caused by gcc 4.6 optimization (by Paul Pluzhnikov)

This commit is contained in:
zhanyong.wan
2011-04-14 19:36:05 +00:00
parent 6a5a25b1e1
commit c006f8c12b
2 changed files with 12 additions and 0 deletions

View File

@@ -662,6 +662,13 @@
# define GTEST_API_
#endif
#if defined(__GNUC__)
// Ask the compiler to never inline a given function.
#define GTEST_NO_INLINE_ __attribute__((noinline))
#else
#define GTEST_NO_INLINE_
#endif // __GNUC__
namespace testing {
class Message;