HomePhabricator

[NFC] Always lock free test: add indirection

Description

[NFC] Always lock free test: add indirection

I have a big patch coming up, and this indirection is required to avoid hitting the following after my big change:

error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wextern-c-compat]

Details

Committed
jfbJan 9 2019, 3:20 PM
Branches
Unknown
Tags
Unknown

Event Timeline

amakc11 added inline comments.
/libcxx/trunk/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
138

Could you, please, normalize this too:

int main()
{
    run();
}