Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1358)

Unified Diff: test/SemaCXX/warn-thread-safety-parsing.cpp

Issue 4975049: Added support for late parsing of attribute arguments to GNU attributes.
Patch Set: More style fixes. Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/SemaCXX/warn-thread-safety-analysis.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) //
//-----------------------------------------//
« no previous file with comments | « test/SemaCXX/warn-thread-safety-analysis.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b