Lines Matching refs:static_assert
53 static_assert(n == 5);
55 static_assert(wn == 5);
69 static_assert(__builtin_strcmp("abab", "abab") == 0);
70 static_assert(__builtin_strcmp("abab", "abba") == -1);
71 static_assert(__builtin_strcmp("abab", "abaa") == 1);
72 static_assert(__builtin_strcmp("ababa", "abab") == 1);
73 static_assert(__builtin_strcmp("abab", "ababa") == -1);
74 static_assert(__builtin_strcmp("a\203", "a") == 1);
75 static_assert(__builtin_strcmp("a\203", "a\003") == 1);
76 static_assert(__builtin_strcmp("abab\0banana", "abab") == 0);
77 static_assert(__builtin_strcmp("abab", "abab\0banana") == 0);
78 static_assert(__builtin_strcmp("abab\0banana", "abab\0canada") == 0);
79 …static_assert(__builtin_strcmp(0, "abab") == 0); // expected-error {{not an integral constant}} ex…
80 …static_assert(__builtin_strcmp("abab", 0) == 0); // expected-error {{not an integral constant}} ex…
82 static_assert(__builtin_strcmp(kFoobar, kFoobazfoobar) == -1); // FIXME: Should we reject this?
83 …static_assert(__builtin_strcmp(kFoobar, kFoobazfoobar + 6) == 0); // expected-error {{not an integ…
85 static_assert(__builtin_strncmp("abaa", "abba", 5) == -1);
86 static_assert(__builtin_strncmp("abaa", "abba", 4) == -1);
87 static_assert(__builtin_strncmp("abaa", "abba", 3) == -1);
88 static_assert(__builtin_strncmp("abaa", "abba", 2) == 0);
89 static_assert(__builtin_strncmp("abaa", "abba", 1) == 0);
90 static_assert(__builtin_strncmp("abaa", "abba", 0) == 0);
91 static_assert(__builtin_strncmp(0, 0, 0) == 0);
92 static_assert(__builtin_strncmp("abab\0banana", "abab\0canada", 100) == 0);
94 static_assert(__builtin_strncmp(kFoobar, kFoobazfoobar, 6) == -1);
95 …static_assert(__builtin_strncmp(kFoobar, kFoobazfoobar, 7) == -1); // FIXME: Should we reject this?
96 static_assert(__builtin_strncmp(kFoobar, kFoobazfoobar + 6, 6) == 0);
97 …static_assert(__builtin_strncmp(kFoobar, kFoobazfoobar + 6, 7) == 0); // expected-error {{not an i…
99 static_assert(__builtin_memcmp("abaa", "abba", 3) == -1);
100 static_assert(__builtin_memcmp("abaa", "abba", 2) == 0);
101 static_assert(__builtin_memcmp("a\203", "a", 2) == 1);
102 static_assert(__builtin_memcmp("a\203", "a\003", 2) == 1);
103 static_assert(__builtin_memcmp(0, 0, 0) == 0);
104 …static_assert(__builtin_memcmp("abab\0banana", "abab\0banana", 100) == 0); // expected-error {{not…
105 …static_assert(__builtin_memcmp("abab\0banana", "abab\0canada", 100) == -1); // FIXME: Should we re…
106 static_assert(__builtin_memcmp("abab\0banana", "abab\0canada", 7) == -1);
107 static_assert(__builtin_memcmp("abab\0banana", "abab\0canada", 6) == -1);
108 static_assert(__builtin_memcmp("abab\0banana", "abab\0canada", 5) == 0);
110 static_assert(__builtin_memcmp(u8"abaa", u8"abba", 3) == -1);
111 static_assert(__builtin_memcmp(u8"abaa", u8"abba", 2) == 0);
112 static_assert(__builtin_memcmp(u8"a\203", u8"a", 2) == 1);
113 static_assert(__builtin_memcmp(u8"a\203", u8"a\003", 2) == 1);
114 static_assert(__builtin_memcmp(0, 0, 0) == 0);
115 …static_assert(__builtin_memcmp(u8"abab\0banana", u8"abab\0banana", 100) == 0); // expected-error {…
116 …static_assert(__builtin_memcmp(u8"abab\0banana", u8"abab\0canada", 100) == -1); // FIXME: Should w…
117 static_assert(__builtin_memcmp(u8"abab\0banana", u8"abab\0canada", 7) == -1);
118 static_assert(__builtin_memcmp(u8"abab\0banana", u8"abab\0canada", 6) == -1);
119 static_assert(__builtin_memcmp(u8"abab\0banana", u8"abab\0canada", 5) == 0);
121 static_assert(__builtin_memcmp(u8"\u1234", "\xE1\x88\xB4", 4) == 0);
122 static_assert(__builtin_memcmp(u8"\u1234", "\xE1\x88\xB3", 4) == 1);
124 static_assert(__builtin_bcmp("abaa", "abba", 3) != 0);
125 static_assert(__builtin_bcmp("abaa", "abba", 2) == 0);
126 static_assert(__builtin_bcmp("a\203", "a", 2) != 0);
127 static_assert(__builtin_bcmp("a\203", "a\003", 2) != 0);
128 static_assert(__builtin_bcmp(0, 0, 0) == 0);
129 …static_assert(__builtin_bcmp("abab\0banana", "abab\0banana", 100) == 0); // expected-error {{not a…
130 …static_assert(__builtin_bcmp("abab\0banana", "abab\0canada", 100) != 0); // FIXME: Should we rejec…
131 static_assert(__builtin_bcmp("abab\0banana", "abab\0canada", 7) != 0);
132 static_assert(__builtin_bcmp("abab\0banana", "abab\0canada", 6) != 0);
133 static_assert(__builtin_bcmp("abab\0banana", "abab\0canada", 5) == 0);
136 static_assert(__builtin_memcmp(&incomplete, "", 0u) == 0);
137 static_assert(__builtin_memcmp("", &incomplete, 0u) == 0);
138 …static_assert(__builtin_memcmp(&incomplete, "", 1u) == 42); // expected-error {{not an integral co…
139 …static_assert(__builtin_memcmp("", &incomplete, 1u) == 42); // expected-error {{not an integral co…
141 static_assert(__builtin_bcmp(&incomplete, "", 0u) == 0);
142 static_assert(__builtin_bcmp("", &incomplete, 0u) == 0);
143 …static_assert(__builtin_bcmp(&incomplete, "", 1u) == 42); // expected-error {{not an integral cons…
144 …static_assert(__builtin_bcmp("", &incomplete, 1u) == 42); // expected-error {{not an integral cons…
150 static_assert(__builtin_memcmp(ku00feff, ks00fe00, 2) == 0);
151 static_assert(__builtin_memcmp(ku00feff, ks00fe00, 99) == 1);
152 static_assert(__builtin_memcmp(ku00fe00, ks00feff, 99) == -1);
153 static_assert(__builtin_memcmp(ks00feff, ku00fe00, 2) == 0);
154 static_assert(__builtin_memcmp(ks00feff, ku00fe00, 99) == 1);
155 static_assert(__builtin_memcmp(ks00fe00, ku00feff, 99) == -1);
156 static_assert(__builtin_memcmp(ks00fe00, ks00feff, 2) == 0);
157 static_assert(__builtin_memcmp(ks00feff, ks00fe00, 99) == 1);
158 static_assert(__builtin_memcmp(ks00fe00, ks00feff, 99) == -1);
160 static_assert(__builtin_bcmp(ku00feff, ks00fe00, 2) == 0);
161 static_assert(__builtin_bcmp(ku00feff, ks00fe00, 99) != 0);
162 static_assert(__builtin_bcmp(ku00fe00, ks00feff, 99) != 0);
163 static_assert(__builtin_bcmp(ks00feff, ku00fe00, 2) == 0);
164 static_assert(__builtin_bcmp(ks00feff, ku00fe00, 99) != 0);
165 static_assert(__builtin_bcmp(ks00fe00, ku00feff, 99) != 0);
166 static_assert(__builtin_bcmp(ks00fe00, ks00feff, 2) == 0);
167 static_assert(__builtin_bcmp(ks00feff, ks00fe00, 99) != 0);
168 static_assert(__builtin_bcmp(ks00fe00, ks00feff, 99) != 0);
172 …static_assert(sizeof(bool) != 1u || __builtin_memcmp(ks00fe00, kb000100.bb, 1) == 0); // expected-…
173 …static_assert(sizeof(bool) != 1u || __builtin_memcmp(ks00fe00, kb000100.bb, 2) == 1); // expected-…
175 …static_assert(sizeof(bool) != 1u || __builtin_bcmp(ks00fe00, kb000100.bb, 1) == 0); // expected-er…
176 …static_assert(sizeof(bool) != 1u || __builtin_bcmp(ks00fe00, kb000100.bb, 2) != 0); // expected-er…
190 …static_assert(__builtin_memcmp(ksl, kuSizeofLong(), sizeof(long) - 1) == 0); // expected-error {{c…
191 …static_assert(__builtin_memcmp(ksl, kuSizeofLong(), sizeof(long) + 0) == 0); // expected-error {{c…
192 …static_assert(__builtin_memcmp(ksl, kuSizeofLong(), sizeof(long) + 1) == 0); // expected-error {{c…
193 …static_assert(__builtin_memcmp(ksl, kuSizeofLong(), 2*sizeof(long) - 1) == 0); // expected-error {…
194 …static_assert(__builtin_memcmp(ksl, kuSizeofLong(), 2*sizeof(long) + 0) == 0); // expected-error {…
195 …static_assert(__builtin_memcmp(ksl, kuSizeofLong(), 2*sizeof(long) + 1) == 42); // expected-error …
196 …static_assert(__builtin_memcmp(ksl + 1, kuSizeofLong() + 1, sizeof(long) - 1) == 0); // expected-e…
197 …static_assert(__builtin_memcmp(ksl + 1, kuSizeofLong() + 1, sizeof(long) + 0) == 0); // expected-e…
198 …static_assert(__builtin_memcmp(ksl + 1, kuSizeofLong() + 1, sizeof(long) + 1) == 42); // expected-…
200 …static_assert(__builtin_bcmp(ksl, kuSizeofLong(), sizeof(long) - 1) == 0); // expected-error {{con…
201 …static_assert(__builtin_bcmp(ksl, kuSizeofLong(), sizeof(long) + 0) == 0); // expected-error {{con…
202 …static_assert(__builtin_bcmp(ksl, kuSizeofLong(), sizeof(long) + 1) == 0); // expected-error {{con…
203 …static_assert(__builtin_bcmp(ksl, kuSizeofLong(), 2*sizeof(long) - 1) == 0); // expected-error {{c…
204 …static_assert(__builtin_bcmp(ksl, kuSizeofLong(), 2*sizeof(long) + 0) == 0); // expected-error {{c…
205 …static_assert(__builtin_bcmp(ksl, kuSizeofLong(), 2*sizeof(long) + 1) == 42); // expected-error {{…
206 …static_assert(__builtin_bcmp(ksl + 1, kuSizeofLong() + 1, sizeof(long) - 1) == 0); // expected-err…
207 …static_assert(__builtin_bcmp(ksl + 1, kuSizeofLong() + 1, sizeof(long) + 0) == 0); // expected-err…
208 …static_assert(__builtin_bcmp(ksl + 1, kuSizeofLong() + 1, sizeof(long) + 1) == 42); // expected-er…
262 static_assert(checkFoldResult<NotBadFoldResult>(
275 static_assert(checkFoldResult<NotBadFoldResult>(
280 static_assert(checkFoldResult<NotBadFoldResult>(
288 static_assert(checkFoldResult<NotBadFoldResult>(
296 static_assert(checkFoldResult<NotBadFoldResult>(
307 static_assert(__builtin_wcscmp(L"abab", L"abab") == 0);
308 static_assert(__builtin_wcscmp(L"abab", L"abba") == -1);
309 static_assert(__builtin_wcscmp(L"abab", L"abaa") == 1);
310 static_assert(__builtin_wcscmp(L"ababa", L"abab") == 1);
311 static_assert(__builtin_wcscmp(L"abab", L"ababa") == -1);
312 static_assert(__builtin_wcscmp(L"abab\0banana", L"abab") == 0);
313 static_assert(__builtin_wcscmp(L"abab", L"abab\0banana") == 0);
314 static_assert(__builtin_wcscmp(L"abab\0banana", L"abab\0canada") == 0);
316 static_assert(__builtin_wcscmp(L"a\x83838383", L"a") == (wchar_t)-1U >> 31);
318 …static_assert(__builtin_wcscmp(0, L"abab") == 0); // expected-error {{not an integral constant}} e…
319 …static_assert(__builtin_wcscmp(L"abab", 0) == 0); // expected-error {{not an integral constant}} e…
321 static_assert(__builtin_wcscmp(kFoobar, kFoobazfoobar) == -1); // FIXME: Should we reject this?
322 …static_assert(__builtin_wcscmp(kFoobar, kFoobazfoobar + 6) == 0); // expected-error {{not an integ…
324 static_assert(__builtin_wcsncmp(L"abaa", L"abba", 5) == -1);
325 static_assert(__builtin_wcsncmp(L"abaa", L"abba", 4) == -1);
326 static_assert(__builtin_wcsncmp(L"abaa", L"abba", 3) == -1);
327 static_assert(__builtin_wcsncmp(L"abaa", L"abba", 2) == 0);
328 static_assert(__builtin_wcsncmp(L"abaa", L"abba", 1) == 0);
329 static_assert(__builtin_wcsncmp(L"abaa", L"abba", 0) == 0);
330 static_assert(__builtin_wcsncmp(0, 0, 0) == 0);
331 static_assert(__builtin_wcsncmp(L"abab\0banana", L"abab\0canada", 100) == 0);
333 static_assert(__builtin_wcsncmp(L"a\x83838383", L"aa", 2) ==
337 static_assert(__builtin_wcsncmp(kFoobar, kFoobazfoobar, 6) == -1);
338 …static_assert(__builtin_wcsncmp(kFoobar, kFoobazfoobar, 7) == -1); // FIXME: Should we reject this?
339 static_assert(__builtin_wcsncmp(kFoobar, kFoobazfoobar + 6, 6) == 0);
340 …static_assert(__builtin_wcsncmp(kFoobar, kFoobazfoobar + 6, 7) == 0); // expected-error {{not an i…
342 static_assert(__builtin_wmemcmp(L"abaa", L"abba", 3) == -1);
343 static_assert(__builtin_wmemcmp(L"abaa", L"abba", 2) == 0);
344 static_assert(__builtin_wmemcmp(0, 0, 0) == 0);
346 static_assert(__builtin_wmemcmp(L"a\x83838383", L"aa", 2) ==
349 …static_assert(__builtin_wmemcmp(L"abab\0banana", L"abab\0banana", 100) == 0); // expected-error {{…
350 …static_assert(__builtin_wmemcmp(L"abab\0banana", L"abab\0canada", 100) == -1); // FIXME: Should we…
351 static_assert(__builtin_wmemcmp(L"abab\0banana", L"abab\0canada", 7) == -1);
352 static_assert(__builtin_wmemcmp(L"abab\0banana", L"abab\0canada", 6) == -1);
353 static_assert(__builtin_wmemcmp(L"abab\0banana", L"abab\0canada", 5) == 0);
363 static_assert(__builtin_strchr(kStr, 'a') == kStr);
364 static_assert(__builtin_strchr(kStr, 'b') == kStr + 1);
365 static_assert(__builtin_strchr(kStr, 'c') == kStr + 2);
366 static_assert(__builtin_strchr(kStr, 'd') == nullptr);
367 static_assert(__builtin_strchr(kStr, 'e') == nullptr);
368 static_assert(__builtin_strchr(kStr, '\0') == kStr + 5);
369 static_assert(__builtin_strchr(kStr, 'a' + 256) == nullptr);
370 static_assert(__builtin_strchr(kStr, 'a' - 256) == nullptr);
371 static_assert(__builtin_strchr(kStr, '\xff') == kStr + 4);
372 static_assert(__builtin_strchr(kStr, '\xff' + 256) == nullptr);
373 static_assert(__builtin_strchr(kStr, '\xff' - 256) == nullptr);
374 static_assert(__builtin_strchr(kFoo, 'o') == kFoo + 1);
375 …static_assert(__builtin_strchr(kFoo, 'x') == nullptr); // expected-error {{not an integral constan…
376 …static_assert(__builtin_strchr(nullptr, 'x') == nullptr); // expected-error {{not an integral cons…
378 static_assert(__builtin_memchr(kStr, 'a', 0) == nullptr);
379 static_assert(__builtin_memchr(kStr, 'a', 1) == kStr);
380 static_assert(__builtin_memchr(kStr, '\0', 5) == nullptr);
381 static_assert(__builtin_memchr(kStr, '\0', 6) == kStr + 5);
382 static_assert(__builtin_memchr(kStr, '\xff', 8) == kStr + 4);
383 static_assert(__builtin_memchr(kStr, '\xff' + 256, 8) == kStr + 4);
384 static_assert(__builtin_memchr(kStr, '\xff' - 256, 8) == kStr + 4);
385 static_assert(__builtin_memchr(kFoo, 'x', 3) == nullptr);
386 …static_assert(__builtin_memchr(kFoo, 'x', 4) == nullptr); // expected-error {{not an integral cons…
387 …static_assert(__builtin_memchr(nullptr, 'x', 3) == nullptr); // expected-error {{not an integral c…
388 static_assert(__builtin_memchr(nullptr, 'x', 0) == nullptr); // FIXME: Should we reject this?
392 static_assert(__builtin_memchr(kU8Str, u8'a', 0) == nullptr);
393 static_assert(__builtin_memchr(kU8Str, u8'a', 1) == kU8Str);
394 static_assert(__builtin_memchr(kU8Str, u8'\0', 5) == nullptr);
395 static_assert(__builtin_memchr(kU8Str, u8'\0', 6) == kU8Str + 5);
396 static_assert(__builtin_memchr(kU8Str, u8'\xff', 8) == kU8Str + 4);
397 static_assert(__builtin_memchr(kU8Str, u8'\xff' + 256, 8) == kU8Str + 4);
398 static_assert(__builtin_memchr(kU8Str, u8'\xff' - 256, 8) == kU8Str + 4);
399 static_assert(__builtin_memchr(kU8Foo, u8'x', 3) == nullptr);
400 …static_assert(__builtin_memchr(kU8Foo, u8'x', 4) == nullptr); // expected-error {{not an integral …
401 …static_assert(__builtin_memchr(nullptr, u8'x', 3) == nullptr); // expected-error {{not an integral…
402 static_assert(__builtin_memchr(nullptr, u8'x', 0) == nullptr); // FIXME: Should we reject this?
405 static_assert(__builtin_memchr(&incomplete, 0, 0u) == nullptr);
406 …static_assert(__builtin_memchr(&incomplete, 0, 1u) == nullptr); // expected-error {{not an integra…
410 static_assert(__builtin_memchr(&u1, -(0x0f + 1), 1) == &u1);
411 static_assert(__builtin_memchr(i1, 0x80, 1) == i1);
416 …static_assert(__builtin_memchr(&ee.e, 240, 1) == &ee.e); // expected-error {{constant}} expected-n…
420 …static_assert(sizeof(bool) != 1u || __builtin_memchr(kBoolPastTheEndPtr - 3, 1, 99) == kBool + 1);…
421 …static_assert(sizeof(bool) != 1u || __builtin_memchr(kBool + 1, 0, 99) == kBoolPastTheEndPtr - 1);…
422 …static_assert(sizeof(bool) != 1u || __builtin_memchr(kBoolPastTheEndPtr - 3, -1, 3) == nullptr); /…
423 …static_assert(sizeof(bool) != 1u || __builtin_memchr(kBoolPastTheEndPtr, 0, 1) == nullptr); // exp…
425 static_assert(__builtin_char_memchr(kStr, 'a', 0) == nullptr);
426 static_assert(__builtin_char_memchr(kStr, 'a', 1) == kStr);
427 static_assert(__builtin_char_memchr(kStr, '\0', 5) == nullptr);
428 static_assert(__builtin_char_memchr(kStr, '\0', 6) == kStr + 5);
429 static_assert(__builtin_char_memchr(kStr, '\xff', 8) == kStr + 4);
430 static_assert(__builtin_char_memchr(kStr, '\xff' + 256, 8) == kStr + 4);
431 static_assert(__builtin_char_memchr(kStr, '\xff' - 256, 8) == kStr + 4);
432 static_assert(__builtin_char_memchr(kFoo, 'x', 3) == nullptr);
433 …static_assert(__builtin_char_memchr(kFoo, 'x', 4) == nullptr); // expected-error {{not an integral…
434 …static_assert(__builtin_char_memchr(nullptr, 'x', 3) == nullptr); // expected-error {{not an integ…
435 static_assert(__builtin_char_memchr(nullptr, 'x', 0) == nullptr); // FIXME: Should we reject this?
437 static_assert(*__builtin_char_memchr(kStr, '\xff', 8) == '\xff');
444 static_assert(char_memchr_mutable());
452 static_assert(checkFoldResult<NotBadFoldResult>(
459 static_assert(checkFoldResult<NotBadFoldResult>(
469 static_assert(__builtin_wcschr(kStr, L'a') == kStr);
470 static_assert(__builtin_wcschr(kStr, L'b') == kStr + 1);
471 static_assert(__builtin_wcschr(kStr, L'c') == kStr + 2);
472 static_assert(__builtin_wcschr(kStr, L'd') == nullptr);
473 static_assert(__builtin_wcschr(kStr, L'e') == nullptr);
474 static_assert(__builtin_wcschr(kStr, L'\0') == kStr + 5);
475 static_assert(__builtin_wcschr(kStr, L'a' + 256) == nullptr);
476 static_assert(__builtin_wcschr(kStr, L'a' - 256) == nullptr);
477 static_assert(__builtin_wcschr(kStr, L'\xffff') == kStr + 4);
478 static_assert(__builtin_wcschr(kFoo, L'o') == kFoo + 1);
479 …static_assert(__builtin_wcschr(kFoo, L'x') == nullptr); // expected-error {{not an integral consta…
480 …static_assert(__builtin_wcschr(nullptr, L'x') == nullptr); // expected-error {{not an integral con…
482 static_assert(__builtin_wmemchr(kStr, L'a', 0) == nullptr);
483 static_assert(__builtin_wmemchr(kStr, L'a', 1) == kStr);
484 static_assert(__builtin_wmemchr(kStr, L'\0', 5) == nullptr);
485 static_assert(__builtin_wmemchr(kStr, L'\0', 6) == kStr + 5);
486 static_assert(__builtin_wmemchr(kStr, L'\xffff', 8) == kStr + 4);
487 static_assert(__builtin_wmemchr(kFoo, L'x', 3) == nullptr);
488 …static_assert(__builtin_wmemchr(kFoo, L'x', 4) == nullptr); // expected-error {{not an integral co…
489 …static_assert(__builtin_wmemchr(nullptr, L'x', 3) == nullptr); // expected-error {{not an integral…
490 static_assert(__builtin_wmemchr(nullptr, L'x', 0) == nullptr); // FIXME: Should we reject this?
535 static_assert(test_memcpy(1, 2, 4) == 1334);
536 static_assert(test_memcpy(2, 1, 4) == 1224);
537 …static_assert(test_memcpy(0, 1, 8) == 2334); // expected-error {{constant}} expected-note {{in cal…
538 …static_assert(test_memcpy(1, 0, 8) == 1124); // expected-error {{constant}} expected-note {{in cal…
539 …static_assert(test_memcpy(1, 2, 1) == 1334); // expected-error {{constant}} expected-note {{in cal…
540 static_assert(test_memcpy(0, 3, 4) == 4234);
541 …static_assert(test_memcpy(0, 3, 8) == 4234); // expected-error {{constant}} expected-note {{in cal…
542 …static_assert(test_memcpy(2, 0, 12) == 4234); // expected-error {{constant}} expected-note {{in ca…
544 static_assert(test_memmove(1, 2, 4) == 1334);
545 static_assert(test_memmove(2, 1, 4) == 1224);
546 static_assert(test_memmove(0, 1, 8) == 2334);
547 static_assert(test_memmove(1, 0, 8) == 1124);
548 …static_assert(test_memmove(1, 2, 1) == 1334); // expected-error {{constant}} expected-note {{in ca…
549 static_assert(test_memmove(0, 3, 4) == 4234);
550 …static_assert(test_memmove(0, 3, 8) == 4234); // expected-error {{constant}} expected-note {{in ca…
551 …static_assert(test_memmove(2, 0, 12) == 4234); // expected-error {{constant}} expected-note {{in c…
553 static_assert(test_wmemcpy(1, 2, 1) == 1334);
554 static_assert(test_wmemcpy(2, 1, 1) == 1224);
555 …static_assert(test_wmemcpy(0, 1, 2) == 2334); // expected-error {{constant}} expected-note {{in ca…
556 …static_assert(test_wmemcpy(1, 0, 2) == 1124); // expected-error {{constant}} expected-note {{in ca…
557 static_assert(test_wmemcpy(1, 2, 1) == 1334);
558 static_assert(test_wmemcpy(0, 3, 1) == 4234);
559 …static_assert(test_wmemcpy(0, 3, 2) == 4234); // expected-error {{constant}} expected-note {{in ca…
560 …static_assert(test_wmemcpy(2, 0, 3) == 4234); // expected-error {{constant}} expected-note {{in ca…
562 static_assert(test_wmemmove(1, 2, 1) == 1334);
563 static_assert(test_wmemmove(2, 1, 1) == 1224);
564 static_assert(test_wmemmove(0, 1, 2) == 2334);
565 static_assert(test_wmemmove(1, 0, 2) == 1124);
566 static_assert(test_wmemmove(1, 2, 1) == 1334);
567 static_assert(test_wmemmove(0, 3, 1) == 4234);
568 …static_assert(test_wmemmove(0, 3, 2) == 4234); // expected-error {{constant}} expected-note {{in c…
569 …static_assert(test_wmemmove(2, 0, 3) == 4234); // expected-error {{constant}} expected-note {{in c…
575 …static_assert(__builtin_memcpy(&global, null, sizeof(wchar_t))); // expected-error {{}} expected-n…
576 …static_assert(__builtin_memmove(&global, null, sizeof(wchar_t))); // expected-error {{}} expected-…
577 …static_assert(__builtin_wmemcpy(&global, null, sizeof(wchar_t))); // expected-error {{}} expected-…
578 …static_assert(__builtin_wmemmove(&global, null, sizeof(wchar_t))); // expected-error {{}} expected…
579 …static_assert(__builtin_memcpy(null, &global, sizeof(wchar_t))); // expected-error {{}} expected-n…
580 …static_assert(__builtin_memmove(null, &global, sizeof(wchar_t))); // expected-error {{}} expected-…
581 …static_assert(__builtin_wmemcpy(null, &global, sizeof(wchar_t))); // expected-error {{}} expected-…
582 …static_assert(__builtin_wmemmove(null, &global, sizeof(wchar_t))); // expected-error {{}} expected…
583 …static_assert(__builtin_memcpy(&global, fold((wchar_t*)123), sizeof(wchar_t))); // expected-error …
584 …static_assert(__builtin_memcpy(fold(reinterpret_cast<wchar_t*>(123)), &global, sizeof(wchar_t))); …
586 …static_assert(__builtin_memcpy(null_incomplete, null_incomplete, sizeof(wchar_t))); // expected-er…
596 static_assert(test_trivial());
609 static_assert(test_nontrivial_memcpy()); // expected-error {{constant}} expected-note {{in call}}
615 static_assert(test_nontrivial_memmove()); // expected-error {{constant}} expected-note {{in call}}
623 …static_assert(type_pun(0x3f800000) == 1.0f); // expected-error {{constant}} expected-note {{in cal…
635 static_assert(test_derived_to_base(0) == 1234);
636 static_assert(test_derived_to_base(1) == 3234);
640 …static_assert(test_derived_to_base(2) == 3434); // expected-error {{constant}} expected-note {{in …
649 static_assert(test_address_of_const_array_type() == 1234);
658 …static_assert(test_incomplete_array_type() == 1234); // expected-error {{constant}} expected-note …
667 …static_assert(test_address_of_incomplete_array_type() == 1234); // expected-error {{constant}} exp…
677 …static_assert(test_address_of_incomplete_struct_type()); // expected-error {{constant}} expected-n…