Avoid -Wcatch-value warning in testsuite
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Apr 2019 23:17:52 +0000 (00:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 23 Apr 2019 23:17:52 +0000 (00:17 +0100)
commite0657c24aed69bc9f6030823d28bcb1e8b93426c
tree9917eab24ea50650410f4b2302cc63f0b4222d8c
parent9588a07c96784d354acc0da930d2fddd8d7742d5
Avoid -Wcatch-value warning in testsuite

* testsuite/20_util/variant/run.cc: Catch exception by reference to
prevent -Wcatch-value warning.

From-SVN: r270527
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/variant/run.cc