On MacOSX the following program:
struct S { virtual void f() = delete; }; int main() { new S; }
Fails with the following error:
Undefined symbols for architecture x86_64: "___cxa_deleted_virtual"
This adds a fix to export the needed symbols.
Test:
> lit -sv test/libcxx/language.support/cxa_deleted_virtual.pass.cpp > Testing Time: 0.21s > Expected Passes : 1
Note: The first attempt to solve it is here: D36870. This adds the fix to just MacOSX files.
The revision will have to be updated afterwards with the commit ID that this eventually gets committed as; for now leave it as rTBD