diff options
author | DeLesley Hutchins <delesley@google.com> | 2012-05-02 17:38:37 +0000 |
---|---|---|
committer | DeLesley Hutchins <delesley@google.com> | 2012-05-02 17:38:37 +0000 |
commit | d96b46ace2aeca93002365ab572ded3742cf78fb (patch) | |
tree | 834bb15d00061bdbb12d1311e8ef5f37f95964c2 /clang/test/SemaCXX/warn-thread-safety-parsing.cpp | |
parent | d7c6777d504013bee96bfe9a50f9e34b309218c8 (diff) | |
download | bcm5719-llvm-d96b46ace2aeca93002365ab572ded3742cf78fb.tar.gz bcm5719-llvm-d96b46ace2aeca93002365ab572ded3742cf78fb.zip |
Thread Safety Analysis: fixed attribute handling for lock_returned attribute.
llvm-svn: 156005
Diffstat (limited to 'clang/test/SemaCXX/warn-thread-safety-parsing.cpp')
-rw-r--r-- | clang/test/SemaCXX/warn-thread-safety-parsing.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/warn-thread-safety-parsing.cpp b/clang/test/SemaCXX/warn-thread-safety-parsing.cpp index 40837eab2ec..316bcf74ada 100644 --- a/clang/test/SemaCXX/warn-thread-safety-parsing.cpp +++ b/clang/test/SemaCXX/warn-thread-safety-parsing.cpp @@ -970,7 +970,7 @@ int lr_function_8() LOCK_RETURNED(muPointer); int lr_function_bad_1() LOCK_RETURNED(1); // \ // expected-warning {{'lock_returned' attribute requires arguments that are class type or point to class type}} int lr_function_bad_2() LOCK_RETURNED("mu"); // \ - // expected-warning {{'lock_returned' attribute requires arguments that are class type or point to class type}} + // expected-warning {{ignoring 'lock_returned' attribute because its argument is invalid}} int lr_function_bad_3() LOCK_RETURNED(muDoublePointer); // \ // expected-warning {{'lock_returned' attribute requires arguments that are class type or point to class type}} int lr_function_bad_4() LOCK_RETURNED(umu); // \ @@ -1350,6 +1350,8 @@ void testEmptyAttributeFunction() EXCLUSIVE_LOCKS_REQUIRED(""); class Graph { public: Mutex mu_; + + static Mutex* get_static_mu() LOCK_RETURNED(&Graph::mu_); }; class Node { |