Skip to content

Commit a97f15d

Browse files
committed
simplify test file
1 parent 8570d7a commit a97f15d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/Analysis/thread-safety-handle-parenthesis.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// RUN: %clang_cc1 -verify -fsyntax-only -std=c++20 -Wthread-safety %s
1+
// RUN: %clang_cc1 -verify -fsyntax-only -Wthread-safety %s
22

3-
class __attribute__((lockable)) Lock {};
3+
struct __attribute__((lockable)) Lock {};
44

5-
void sink_protected(int) {}
5+
void sink_protected(int);
66

7-
class Baz {
7+
struct Baz {
88
public:
99
Lock lock_;
1010
int protected_num_ __attribute__((guarded_by(lock_))) = 1;

0 commit comments

Comments
 (0)