summaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-thread-safety-parsing.cpp
diff options
context:
space:
mode:
authorDeLesley Hutchins <delesley@google.com>2011-12-14 19:36:06 +0000
committerDeLesley Hutchins <delesley@google.com>2011-12-14 19:36:06 +0000
commit4805f158203017bdf575003235473284134c1071 (patch)
tree5b4cf0c1fe2a91ff607363154f770eb5712ef9e1 /test/SemaCXX/warn-thread-safety-parsing.cpp
parent76178ed0911797175b13ac733c390233f02bb841 (diff)
downloadclang-4805f158203017bdf575003235473284134c1071.tar.gz
Allow empty argument lists in thread safety attributes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/warn-thread-safety-parsing.cpp')
-rw-r--r--test/SemaCXX/warn-thread-safety-parsing.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-thread-safety-parsing.cpp b/test/SemaCXX/warn-thread-safety-parsing.cpp
index 67882d0899..b243365c3c 100644
--- a/test/SemaCXX/warn-thread-safety-parsing.cpp
+++ b/test/SemaCXX/warn-thread-safety-parsing.cpp
@@ -1253,3 +1253,12 @@ public:
Mu mu;
};
+//-------------------------
+// Empty argument lists
+//-------------------------
+
+class __attribute__((lockable)) EmptyArgListsTest {
+ void lock() __attribute__((exclusive_lock_function())) { }
+ void unlock() __attribute__((unlock_function())) { }
+};
+