projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix -Wunused-variable
[folly.git]
/
folly
/
test
/
FixedStringTest.cpp
diff --git
a/folly/test/FixedStringTest.cpp
b/folly/test/FixedStringTest.cpp
index 437bd67ce82b5205f463dfeee9d5f7827d087c0a..bf3e943d9d8f5a57ef77e19b7e2a9a20f30c84ff 100644
(file)
--- a/
folly/test/FixedStringTest.cpp
+++ b/
folly/test/FixedStringTest.cpp
@@
-50,6
+50,7
@@
TEST(FixedStringCtorTest, Default) {
TEST(FixedStringCtorTest, FromLiterals) {
constexpr folly::FixedString<42> s{"hello world"};
TEST(FixedStringCtorTest, FromLiterals) {
constexpr folly::FixedString<42> s{"hello world"};
+ static_assert(s[0] == 'h', "");
constexpr folly::FixedString<11> s2{"hello world"};
static_assert(s2[0] == 'h', "");
static_assert(s2[10] == 'd', "");
constexpr folly::FixedString<11> s2{"hello world"};
static_assert(s2[0] == 'h', "");
static_assert(s2[10] == 'd', "");