aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.target/arm/interference.C
blob: 34fe8a52bff9a769afce0bd45a77db32d628db2c (plain)
1
2
3
4
5
6
7
8
9
// Test C++17 hardware interference size constants
// { dg-do compile { target c++17 } }

#include <new>

// Recent ARM CPUs have a cache line size of 64.  Older ones have
// a size of 32, but I guess they're old enough that we don't care?
static_assert(std::hardware_destructive_interference_size == 64);
static_assert(std::hardware_constructive_interference_size == 64);