blob: 0d7169b364d91123ef8c6d2a25751a4190784c6e [file] [log] [blame]
// On Darwin, key methods that are inline result in comdat style things. */
// PR darwin/25908
// { dg-do compile { target *-*-darwin* } }
// { dg-final { scan-assembler ".globl __ZTV1f\\n .weak_definition __ZTV1f\\n .section __DATA,__const_coal,coalesced" } }
// { dg-final { scan-assembler ".globl __ZTS1f\\n .weak_definition __ZTS1f\\n .section __TEXT,__const_coal,coalesced" } }
// LLVM LOCAL begin
// With llvm ZTI1f is in the right place, but the ordering is different
// so the .section directive is not needed. Do the best we can.
// (It belongs in the same place as ZTV1f.)
// LLVM LOCAL end
// { dg-final { scan-assembler ".globl __ZTI1f\\n .weak_definition __ZTI1f\\n" } }
class f
{
virtual void g();
virtual void h();
} c;
inline void f::g() {}
int sub(void)
{}