Lines Matching full:record
5 struct Record { in test_POD_64_bytes() struct
9 Record records[8]; in test_POD_64_bytes()
15 struct Record { in test_POD_65_bytes() struct
19 // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} in test_POD_65_bytes()
20 // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} in test_POD_65_bytes()
21 Record records[8]; in test_POD_65_bytes()
27 struct Record { in test_TriviallyCopyable_64_bytes() struct
28 Record() {} in test_TriviallyCopyable_64_bytes() function
32 Record records[8]; in test_TriviallyCopyable_64_bytes()
37 struct Record { in test_TriviallyCopyConstructible_64_bytes() struct
39 Record& operator=(Record const& other){return *this;}; in test_TriviallyCopyConstructible_64_bytes() argument
43 Record records[8]; in test_TriviallyCopyConstructible_64_bytes()
49 struct Record { in test_TriviallyCopyable_65_bytes() struct
50 Record() {} in test_TriviallyCopyable_65_bytes() argument
54 // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} in test_TriviallyCopyable_65_bytes()
55 // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} in test_TriviallyCopyable_65_bytes()
56 Record records[8]; in test_TriviallyCopyable_65_bytes()
62 struct Record { in test_TriviallyCopyConstructible_65_bytes() struct
64 Record& operator=(Record const& other){return *this;}; in test_TriviallyCopyConstructible_65_bytes() argument
67 // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} in test_TriviallyCopyConstructible_65_bytes()
68 // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} in test_TriviallyCopyConstructible_65_bytes()
69 Record records[8]; in test_TriviallyCopyConstructible_65_bytes()
75 struct Record { in test_NonTriviallyCopyable() struct
76 Record() {} in test_NonTriviallyCopyable() function
77 ~Record() {} in test_NonTriviallyCopyable() argument
82 // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} in test_NonTriviallyCopyable()
83 // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} in test_NonTriviallyCopyable()
84 Record records[8]; in test_NonTriviallyCopyable()
90 struct [[clang::trivial_abi]] Record { in test_TrivialABI_64_bytes() struct
91 Record() {} in test_TrivialABI_64_bytes() function
92 ~Record() {} in test_TrivialABI_64_bytes() argument
96 Record records[8]; in test_TrivialABI_64_bytes()
102 struct [[clang::trivial_abi]] Record { in test_TrivialABI_65_bytes() struct
103 Record() {} in test_TrivialABI_65_bytes() function
104 ~Record() {} in test_TrivialABI_65_bytes() argument
108 // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} in test_TrivialABI_65_bytes()
109 // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} in test_TrivialABI_65_bytes()
110 Record records[8]; in test_TrivialABI_65_bytes()