mirror of
https://github.com/google/googletest.git
synced 2025-11-13 08:15:04 -05:00
fixes a problem caused by gcc 4.6 optimization (by Paul Pluzhnikov)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user