Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/ExtraTests/X11-DisableStringification.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2018-08-31 21:27:35 +0200
committerMartin Hořeňovský2018-08-31 21:27:35 +0200
commitf3972f06959e6e50d4415472f62b638128aa0e17 (patch)
tree452d8304e2108254e30e1929e6e6b77976104007 /projects/ExtraTests/X11-DisableStringification.cpp
parent38e1731f69349fbb290a8675a4cd09ba30500bb6 (diff)
downloadcatch3-f3972f06959e6e50d4415472f62b638128aa0e17.tar.gz
Add test for CATCH_CONFIG_DISABLE_STRINGIFICATION
Diffstat (limited to 'projects/ExtraTests/X11-DisableStringification.cpp')
-rw-r--r--projects/ExtraTests/X11-DisableStringification.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/projects/ExtraTests/X11-DisableStringification.cpp b/projects/ExtraTests/X11-DisableStringification.cpp
new file mode 100644
index 00000000..7a93f6e2
--- /dev/null
+++ b/projects/ExtraTests/X11-DisableStringification.cpp
@@ -0,0 +1,16 @@
+// X11-DisableStringification.cpp
+// Test that stringification of original expression can be disabled
+// this is a workaround for VS 2017 issue with Raw String literal
+// and preprocessor token pasting. In other words, hopefully this test
+// will be deleted soon :-)
+
+#define CATCH_CONFIG_MAIN
+#include <catch2/catch.hpp>
+
+struct Hidden {};
+
+bool operator==(Hidden, Hidden) { return true; }
+
+TEST_CASE("DisableStringification") {
+ REQUIRE( Hidden{} == Hidden{} );
+}