Skip to content

Commit

Permalink
Initialize unions in test
Browse files Browse the repository at this point in the history
Fixes (on travis):

/home/travis/build/gccxml/pygccxml/unittests/data/test_elaborated_types.hpp:94:39: error:
      default initialization of an object of const type 'const volatile union
      FooUnion' without a user-provided default constructor
        const volatile union FooUnion e5;
                                      ^
                                         = {}
  • Loading branch information
iMichka committed Apr 12, 2017
1 parent 1532aa0 commit 5269a93
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unittests/data/test_elaborated_types.hpp
Expand Up @@ -88,10 +88,10 @@ namespace elaborated_t {
namespace yes_union {

union FooUnion u1;
const union FooUnion u2;
const union FooUnion u2 = {};
volatile union FooUnion u3;
volatile const union FooUnion e4;
const volatile union FooUnion e5;
volatile const union FooUnion e4 = {};
const volatile union FooUnion e5 = {};

union FooUnion *u1ptr;
const union FooUnion *u2ptr;
Expand Down Expand Up @@ -184,10 +184,10 @@ namespace elaborated_t {
namespace no_union {

FooUnion u1;
const FooUnion u2;
const FooUnion u2 = {};
volatile FooUnion u3;
volatile const FooUnion e4;
const volatile FooUnion e5;
volatile const FooUnion e4 = {};
const volatile FooUnion e5 = {};

FooUnion *u1ptr;
const FooUnion *u2ptr;
Expand Down

0 comments on commit 5269a93

Please sign in to comment.