From c1e8e71aab60158b3653e756f6b6e34180273eda Mon Sep 17 00:00:00 2001 From: Joshua Cannon Date: Fri, 11 Oct 2019 09:34:01 -0500 Subject: [PATCH] Add a compile test --- googlemock/test/gmock-function-mocker_test.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/googlemock/test/gmock-function-mocker_test.cc b/googlemock/test/gmock-function-mocker_test.cc index fbc5d5b2..e99ede53 100644 --- a/googlemock/test/gmock-function-mocker_test.cc +++ b/googlemock/test/gmock-function-mocker_test.cc @@ -656,5 +656,12 @@ TEST(MockMethodMockFunctionTest, MockMethodSizeOverhead) { EXPECT_EQ(sizeof(MockMethodSizes0), sizeof(MockMethodSizes4)); } +// TODO(thejcannon): This just tests that this will compile, as gmock repeating the +// noexcept specifier isn't supported yet +struct MockUsesNoexceptWithParenthesis +{ + MOCK_METHOD(void, func, (), (noexcept(false))); +}; + } // namespace gmock_function_mocker_test } // namespace testing