aboutsummaryrefslogtreecommitdiff
path: root/test/std/iterators/iterators.general/gcc_workaround.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/iterators/iterators.general/gcc_workaround.pass.cpp')
-rw-r--r--test/std/iterators/iterators.general/gcc_workaround.pass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/std/iterators/iterators.general/gcc_workaround.pass.cpp b/test/std/iterators/iterators.general/gcc_workaround.pass.cpp
index 6522bd3c7bcb..7578e718231d 100644
--- a/test/std/iterators/iterators.general/gcc_workaround.pass.cpp
+++ b/test/std/iterators/iterators.general/gcc_workaround.pass.cpp
@@ -10,11 +10,12 @@
// Tests workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64816.
#include <string>
+#include "test_macros.h"
-void f(const std::string &s) { s.begin(); }
+void f(const std::string &s) { TEST_IGNORE_NODISCARD s.begin(); }
#include <vector>
-void AppendTo(const std::vector<char> &v) { v.begin(); }
+void AppendTo(const std::vector<char> &v) { TEST_IGNORE_NODISCARD v.begin(); }
int main() {}