Index: test/SemaCXX/warn-thread-safety-parsing.cpp |
diff --git a/test/SemaCXX/warn-thread-safety-parsing.cpp b/test/SemaCXX/warn-thread-safety-parsing.cpp |
index e943f3b3839529b87bad223c7b97f38194fcfa32..5063c643c37ff3b549df6335f5ce4e507ba5f956 100644 |
--- a/test/SemaCXX/warn-thread-safety-parsing.cpp |
+++ b/test/SemaCXX/warn-thread-safety-parsing.cpp |
@@ -6,6 +6,8 @@ |
//-----------------------------------------// |
class __attribute__((lockable)) Mu { |
+ public: |
+ void Lock(); |
}; |
class UnlockableMu{ |
@@ -40,6 +42,26 @@ Mu* muPointer; |
Mu ** muDoublePointer = & muPointer; |
Mu& muRef = mu1; |
+//---------------------------------------// |
+// Scoping tests |
+//--------------------------------------// |
+ |
+class Foo { |
+ Mu foomu; |
+ void needLock() __attribute__((exclusive_lock_function(foomu))); |
+}; |
+ |
+class Foo2 { |
+ void needLock() __attribute__((exclusive_lock_function(foomu))); |
+ Mu foomu; |
+}; |
+ |
+class Bar { |
+ Mu barmu; |
+ Mu barmu2 __attribute__((acquired_after(barmu))); |
+}; |
+ |
+ |
//-----------------------------------------// |
// No Thread Safety Analysis (noanal) // |
//-----------------------------------------// |