1 // RUN: %check_clang_tidy %s concurrency-mt-unsafe %t -- -config='{CheckOptions: [{key: "concurrency-mt-unsafe.FunctionSet", value: "glibc"}]}'
2 
3 extern unsigned int sleep (unsigned int __seconds);
4 extern int *gmtime (const int *__timer);
5 extern char *dirname (char *__path);
6 
foo()7 void foo() {
8   sleep(2);
9   // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: function is not thread safe [concurrency-mt-unsafe]
10 
11   ::sleep(2);
12   // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: function is not thread safe [concurrency-mt-unsafe]
13 
14   dirname(nullptr);
15 }
16