We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8570d7a commit a97f15dCopy full SHA for a97f15d
clang/test/Analysis/thread-safety-handle-parenthesis.cpp
@@ -1,10 +1,10 @@
1
-// RUN: %clang_cc1 -verify -fsyntax-only -std=c++20 -Wthread-safety %s
+// RUN: %clang_cc1 -verify -fsyntax-only -Wthread-safety %s
2
3
-class __attribute__((lockable)) Lock {};
+struct __attribute__((lockable)) Lock {};
4
5
-void sink_protected(int) {}
+void sink_protected(int);
6
7
-class Baz {
+struct Baz {
8
public:
9
Lock lock_;
10
int protected_num_ __attribute__((guarded_by(lock_))) = 1;
0 commit comments