aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/optional
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/unittests/optional')
-rw-r--r--gdb/unittests/optional/assignment/1.cc3
-rw-r--r--gdb/unittests/optional/assignment/2.cc3
-rw-r--r--gdb/unittests/optional/assignment/3.cc3
-rw-r--r--gdb/unittests/optional/assignment/4.cc3
-rw-r--r--gdb/unittests/optional/assignment/5.cc3
-rw-r--r--gdb/unittests/optional/assignment/6.cc3
-rw-r--r--gdb/unittests/optional/assignment/7.cc3
-rw-r--r--gdb/unittests/optional/cons/copy.cc3
-rw-r--r--gdb/unittests/optional/cons/default.cc3
-rw-r--r--gdb/unittests/optional/cons/move.cc3
-rw-r--r--gdb/unittests/optional/cons/value.cc3
-rw-r--r--gdb/unittests/optional/in_place.cc3
-rw-r--r--gdb/unittests/optional/observers/1.cc3
-rw-r--r--gdb/unittests/optional/observers/2.cc3
14 files changed, 28 insertions, 14 deletions
diff --git a/gdb/unittests/optional/assignment/1.cc b/gdb/unittests/optional/assignment/1.cc
index 8524647..f17468c 100644
--- a/gdb/unittests/optional/assignment/1.cc
+++ b/gdb/unittests/optional/assignment/1.cc
@@ -92,7 +92,8 @@ struct value_type : private mixin_counter
state_type state = zero;
};
-void test()
+static void
+test ()
{
using O = gdb::optional<value_type>;
using S = value_type::state_type;
diff --git a/gdb/unittests/optional/assignment/2.cc b/gdb/unittests/optional/assignment/2.cc
index 8c91602..9964d57 100644
--- a/gdb/unittests/optional/assignment/2.cc
+++ b/gdb/unittests/optional/assignment/2.cc
@@ -92,7 +92,8 @@ struct value_type : private mixin_counter
state_type state = zero;
};
-void test()
+static void
+test ()
{
using O = gdb::optional<value_type>;
using S = value_type::state_type;
diff --git a/gdb/unittests/optional/assignment/3.cc b/gdb/unittests/optional/assignment/3.cc
index 2957a29..2fbab47 100644
--- a/gdb/unittests/optional/assignment/3.cc
+++ b/gdb/unittests/optional/assignment/3.cc
@@ -92,7 +92,8 @@ struct value_type : private mixin_counter
state_type state = zero;
};
-void test()
+static void
+test ()
{
using O = gdb::optional<value_type>;
using S = value_type::state_type;
diff --git a/gdb/unittests/optional/assignment/4.cc b/gdb/unittests/optional/assignment/4.cc
index 98ea03d..d86bc03 100644
--- a/gdb/unittests/optional/assignment/4.cc
+++ b/gdb/unittests/optional/assignment/4.cc
@@ -92,7 +92,8 @@ struct value_type : private mixin_counter
state_type state = zero;
};
-void test()
+static void
+test ()
{
using O = gdb::optional<value_type>;
using S = value_type::state_type;
diff --git a/gdb/unittests/optional/assignment/5.cc b/gdb/unittests/optional/assignment/5.cc
index 3a7bd33..b7b8d61 100644
--- a/gdb/unittests/optional/assignment/5.cc
+++ b/gdb/unittests/optional/assignment/5.cc
@@ -28,7 +28,8 @@ struct mixin_counter
struct value_type : private mixin_counter { };
-void test()
+static void
+test ()
{
using O = gdb::optional<value_type>;
diff --git a/gdb/unittests/optional/assignment/6.cc b/gdb/unittests/optional/assignment/6.cc
index cea5994..3c1e246 100644
--- a/gdb/unittests/optional/assignment/6.cc
+++ b/gdb/unittests/optional/assignment/6.cc
@@ -34,7 +34,8 @@ struct value_type : private mixin_counter
int state = 0;
};
-void test()
+static void
+test ()
{
using O = gdb::optional<value_type>;
diff --git a/gdb/unittests/optional/assignment/7.cc b/gdb/unittests/optional/assignment/7.cc
index 76a47eb..5e73670 100644
--- a/gdb/unittests/optional/assignment/7.cc
+++ b/gdb/unittests/optional/assignment/7.cc
@@ -17,7 +17,8 @@
namespace assign_7 {
-void test()
+static void
+test ()
{
gdb::optional<int> o{666};
VERIFY(o && *o == 666);
diff --git a/gdb/unittests/optional/cons/copy.cc b/gdb/unittests/optional/cons/copy.cc
index 28bfce8..af8b56e 100644
--- a/gdb/unittests/optional/cons/copy.cc
+++ b/gdb/unittests/optional/cons/copy.cc
@@ -47,7 +47,8 @@ struct throwing_copy
throwing_copy(throwing_copy const&) { throw exception {}; }
};
-void test()
+static void
+test ()
{
// [20.5.4.1] Constructors
diff --git a/gdb/unittests/optional/cons/default.cc b/gdb/unittests/optional/cons/default.cc
index 828fa26..54c4bf7 100644
--- a/gdb/unittests/optional/cons/default.cc
+++ b/gdb/unittests/optional/cons/default.cc
@@ -33,7 +33,8 @@ struct tracker
int tracker::count = 0;
-void test()
+static void
+test ()
{
// [20.5.4.1] Constructors
diff --git a/gdb/unittests/optional/cons/move.cc b/gdb/unittests/optional/cons/move.cc
index 0cfa539..cf363f4 100644
--- a/gdb/unittests/optional/cons/move.cc
+++ b/gdb/unittests/optional/cons/move.cc
@@ -47,7 +47,8 @@ struct throwing_move
throwing_move(throwing_move const&) { throw exception {}; }
};
-void test()
+static void
+test ()
{
// [20.5.4.1] Constructors
diff --git a/gdb/unittests/optional/cons/value.cc b/gdb/unittests/optional/cons/value.cc
index e47b367..23f546e 100644
--- a/gdb/unittests/optional/cons/value.cc
+++ b/gdb/unittests/optional/cons/value.cc
@@ -55,7 +55,8 @@ struct throwing_construction
bool propagate;
};
-void test()
+static void
+test ()
{
// [20.5.4.1] Constructors
diff --git a/gdb/unittests/optional/in_place.cc b/gdb/unittests/optional/in_place.cc
index 6387be4..d751abe 100644
--- a/gdb/unittests/optional/in_place.cc
+++ b/gdb/unittests/optional/in_place.cc
@@ -17,7 +17,8 @@
namespace in_place {
-void test()
+static void
+test ()
{
// [20.5.5] In-place construction
{
diff --git a/gdb/unittests/optional/observers/1.cc b/gdb/unittests/optional/observers/1.cc
index 42a7719..368c42d 100644
--- a/gdb/unittests/optional/observers/1.cc
+++ b/gdb/unittests/optional/observers/1.cc
@@ -22,7 +22,8 @@ struct value_type
int i;
};
-void test()
+static void
+test ()
{
gdb::optional<value_type> o { value_type { 51 } };
VERIFY( (*o).i == 51 );
diff --git a/gdb/unittests/optional/observers/2.cc b/gdb/unittests/optional/observers/2.cc
index cc28c0b..e259b2b 100644
--- a/gdb/unittests/optional/observers/2.cc
+++ b/gdb/unittests/optional/observers/2.cc
@@ -24,7 +24,8 @@ struct value_type
void* operator&(const value_type&) = delete;
-void test()
+static void
+test ()
{
gdb::optional<value_type> o { value_type { 51 } };
VERIFY( o->i == 51 );