blob: 90034426fadaad1f62d7e9fbca2a90e9fa2d2dcb [file] [log] [blame]
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// <atomic>
// Make sure that `std::atomic` doesn't work with `_ExtInt`. The intent is to
// disable them for now until their behavior can be designed better later.
// See for details.
// UNSUPPORTED: apple-clang-12
// UNSUPPORTED: libcpp-has-no-threads
#include <atomic>
int main(int, char**)
// expected-error@atomic:*1 {{_Atomic cannot be applied to integer type '_ExtInt(32)'}}
std::atomic<_ExtInt(32)> x(42);
return 0;