summaryrefslogtreecommitdiffstats
path: root/src/fmt/test/header-only-test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fmt/test/header-only-test.cc')
-rw-r--r--src/fmt/test/header-only-test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fmt/test/header-only-test.cc b/src/fmt/test/header-only-test.cc
new file mode 100644
index 000000000..570f09a56
--- /dev/null
+++ b/src/fmt/test/header-only-test.cc
@@ -0,0 +1,11 @@
+// Header-only configuration test
+
+#include "fmt/core.h"
+#include "fmt/ostream.h"
+#include "gtest/gtest.h"
+
+#ifndef FMT_HEADER_ONLY
+# error "Not in the header-only mode."
+#endif
+
+TEST(header_only_test, format) { EXPECT_EQ(fmt::format("foo"), "foo"); }