HomeSort by relevance Sort by last modified time
    Searched refs:sls_guard_var (Results 1 - 2 of 2) sorted by null

  /external/clang/test/PCH/
thread-safety-attrs.cpp 101 int sls_guard_var __attribute__((guarded_var)) = 0; variable
125 int x = sls_guard_var;
131 sls_guard_var = 2;
137 sls_guard_var = 2;
  /external/clang/test/SemaCXX/
warn-thread-safety-analysis.cpp 101 int sls_guard_var __attribute__((guarded_var)) = 0; variable
123 int x = sls_guard_var;
129 sls_guard_var = 2;
135 sls_guard_var = 2;
436 sls_guard_var = 1; // \
437 // expected-warning{{writing variable 'sls_guard_var' requires locking any mutex exclusively}}
441 int x = sls_guard_var; // \
442 // expected-warning{{reading variable 'sls_guard_var' requires locking any mutex}}
482 sls_guard_var++; // \
483 // expected-warning{{writing variable 'sls_guard_var' requires locking any mutex exclusively}
    [all...]

Completed in 24 milliseconds