1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: libcpp-has-no-threads
10 
11 // <atomic>
12 
13 // std::atomic
14 
15 // atomic& operator=( const atomic& ) volatile = delete;
16 
17 #include <atomic>
18 
main(int,char **)19 int main(int, char**)
20 {
21     volatile std::atomic<int*> obj1;
22     std::atomic<int*> obj2;
23     obj1 = obj2; // expected-error {{overload resolution selected deleted operator '='}}
24 }
25