Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20190110 (experimental)

Options
Warnings
Optimization
Boost 1.69.0
C++2a(GNU)
no pedantic
Raw compiler options
-fconcepts

Author

anonymous

over 6 years ago

static_vector.h
aligned_storage_array.h
noisy.h

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a -fconcepts

TEST_UNINIT

UB: 1:0
UB: -1739907942:1073285584
ctor 10:10 offset:0 0x140732726803792
ctor 1:2 offset:0 0x140732726803816
10:10?: 10:10
1:2?: 1:2
dtor 10:10 offset:0 0x140732726803792
dtor 1:2 offset:0 0x140732726803816
???: 1:2

TEST_INIT

0:0?: 0:0
0:0?: 0:0
0:0?: 0:0
0:0?: 0:0
0:0?: 0:0
???: dtor 0:0 offset:0 0x140732726803816
???: dtor 0:0 offset:0 0x140732726803952
???: dtor 0:0 offset:0 0x140732726803792
ctor 5:6 offset:0 0x140732726803800
5:6?: 5:6
dtor 5:6 offset:0 0x140732726803800

TEST_STACK_VECTOR_EMPLACE

v1 size == 0?: 0
ctor 1:10 offset:0 0x140732726803616
ctor 2:20 offset:0 0x140732726803624
v1 size == 2?: 2
1:10?: 1:10
2:20?: 2:20
???: 0:0
asgn(c) 1:10 offset:0 0x140732726803712
asgn(c) 2:20 offset:0 0x140732726803720
v2 size == 2?: 2
1:10?: 1:10
2:20?: 2:20
ctor 3:30 offset:0 0x140732726803632
3:30?: 3:30
???: 4144959:63
dtor 1:10 offset:0 0x140732726803616
dtor 2:20 offset:0 0x140732726803624
dtor 3:30 offset:0 0x140732726803632
v1 size == 0?: 0
???: 1:10
???: 2:20
???: 3:30
ctor 1:-10 offset:0 0x140732726803616
ctor 2:-20 offset:0 0x140732726803624
ctor 3:-30 offset:0 0x140732726803632
v1 size == 3?: 3
1:-10?: 1:-10
2:-20?: 2:-20
3:-30?: 3:-30
Testing foreach... (3 total)
Loop!: 1:-10
Loop!: 2:-20
Loop!: 3:-30
dtor 1:10 offset:0 0x140732726803712
dtor 2:20 offset:0 0x140732726803720
dtor 1:-10 offset:0 0x140732726803616
dtor 2:-20 offset:0 0x140732726803624
dtor 3:-30 offset:0 0x140732726803632

TEST_STACK_VECTOR_COPY_MOVE

ctor 1:10 offset:0 0x140732726803520
ctor 2:20 offset:0 0x140732726803528
ctor 3:30 offset:0 0x140732726803536
v1: 1:10
v1: 2:20
v1: 3:30
Copying v1 to v2... 
asgn(c) 1:10 offset:0 0x140732726803616
asgn(c) 2:20 offset:0 0x140732726803624
asgn(c) 3:30 offset:0 0x140732726803632
v1: 1:10
v1: 2:20
v1: 3:30
v2: 1:10
v2: 2:20
v2: 3:30
v1 size == 3?: 3
v2 size == 3?: 3
Moving v1 to v3... 
asgn(m) 1:10 offset:0 0x140732726803712
asgn(m) 2:20 offset:0 0x140732726803720
asgn(m) 3:30 offset:0 0x140732726803728
v2: 1:10
v2: 2:20
v2: 3:30
v3: 1:10
v3: 2:20
v3: 3:30
v1 size == 0?: 0
v2 size == 3?: 3
v3 size == 3?: 3
Copying v3 to v3... 
v3: 1:10
v3: 2:20
v3: 3:30
v3 size == 3?: 3
dtor 1:10 offset:0 0x140732726803712
dtor 2:20 offset:0 0x140732726803720
dtor 3:30 offset:0 0x140732726803728
dtor 1:10 offset:0 0x140732726803616
dtor 2:20 offset:0 0x140732726803624
dtor 3:30 offset:0 0x140732726803632
299
Exit Code:
0