1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: libcpp-has-no-threads
11 // REQUIRES: thread-safety
15 // MODULES_DEFINES: _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS
16 #define _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS
21 int foo __attribute__((guarded_by(m)));
23 void increment() __attribute__((requires_capability(m))) {