| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#include "string_test.h" |
|
2
|
856
|
|
|
|
|
|
TEST_CASE("basic_string", "[string][string_char]") { test::test_string::run(); } |
|
3
|
|
|
|
|
|
|
|
|
4
|
0
|
|
|
|
|
|
void test_compilation_warnings () { |
|
5
|
|
|
|
|
|
|
using panda::string; |
|
6
|
|
|
|
|
|
|
using panda::string_view; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
{ |
|
9
|
|
|
|
|
|
|
struct { |
|
10
|
|
|
|
|
|
|
uint64_t a; |
|
11
|
|
|
|
|
|
|
uint64_t b; |
|
12
|
|
|
|
|
|
|
} abc; |
|
13
|
0
|
0
|
|
|
|
|
auto data = string("\x05\x01\x00\x01") + string((char*)&abc, 16) + string((char*)&abc, 2); |
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
} |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
{ |
|
17
|
0
|
|
|
|
|
|
string str = "andedf"; |
|
18
|
0
|
0
|
|
|
|
|
string str2 = std::move(str); |
|
19
|
|
|
|
|
|
|
} |
|
20
|
72
|
50
|
|
|
|
|
} |
|
|
|
50
|
|
|
|
|
|