diff options
Diffstat (limited to 'libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/race.pass.cpp')
-rw-r--r-- | libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/race.pass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/race.pass.cpp b/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/race.pass.cpp index ebba7f3d4f4..511aa3e804b 100644 --- a/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/race.pass.cpp +++ b/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/race.pass.cpp @@ -37,11 +37,13 @@ void f0() assert(global == 1); } -int main() +int main(int, char**) { std::thread t0(f0); std::thread t1(f0); t0.join(); t1.join(); assert(global == 1); + + return 0; } |