summaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock-function-mocker_nc.cc
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2018-11-16 18:03:03 (GMT)
committerGennadiy Civil <misterg@google.com>2018-11-20 18:29:40 (GMT)
commit5dab7be70d628ad8079f915ab5bd3753dea1af2b (patch)
tree9ca927326d6357c7f5b9e9494bdf6d5ec29298c8 /googlemock/test/gmock-function-mocker_nc.cc
parent45d66d81bec9edd1256b6edb7e519602b1d0d6de (diff)
downloadgoogletest-5dab7be70d628ad8079f915ab5bd3753dea1af2b.zip
googletest-5dab7be70d628ad8079f915ab5bd3753dea1af2b.tar.gz
googletest-5dab7be70d628ad8079f915ab5bd3753dea1af2b.tar.bz2
Googletest export
Validate spec modifiers. PiperOrigin-RevId: 221810235
Diffstat (limited to 'googlemock/test/gmock-function-mocker_nc.cc')
-rw-r--r--googlemock/test/gmock-function-mocker_nc.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/googlemock/test/gmock-function-mocker_nc.cc b/googlemock/test/gmock-function-mocker_nc.cc
new file mode 100644
index 0000000..d38fe85
--- /dev/null
+++ b/googlemock/test/gmock-function-mocker_nc.cc
@@ -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