Googletest export

Validate spec modifiers.

PiperOrigin-RevId: 221810235
This commit is contained in:
Abseil Team
2018-11-16 13:03:03 -05:00
committed by Gennadiy Civil
parent 45d66d81be
commit 5dab7be70d
4 changed files with 79 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
#include "gmock/gmock.h"
#include <memory>
#include <string>
#if defined(TEST_MOCK_METHOD_INVALID_CONST_SPEC)
struct Base {
MOCK_METHOD(int, F, (), (onst));
};
#else
// Sanity check - this should compile.
#endif