| 1 |
// { dg-options "-O0" } |
| 2 |
// { dg-do compile { target c++17 } } |
| 3 |
// { dg-final { scan-assembler "memcmp" } } |
| 4 |
|
| 5 |
#include <algorithm> |
| 6 |
#include <cstddef> |
| 7 |
|
| 8 |
bool eq(std::byte const* p, std::byte const* q, unsigned n) |
| 9 |
{ |
| 10 |
return std::equal(p, p + n, q); |
| 11 |
} |