blob: 10d58dd3a6cb362ea6d0964458092bfd92a6b7ea [file] [log] [blame]
/* APPLE LOCAL file weak types 5954418 */
/* { dg-do compile } */
/* LLVM LOCAL begin - Whitespace */
/* { dg-final { scan-assembler "weak_definition\[ \t]+__ZTI1B" } } */
/* { dg-final { scan-assembler "weak_definition\[ \t]+__ZTI1A" } } */
/* LLVM LOCAL end - Whitespace */
/* Radar 5954418 */
#define WEAK __attribute__ ((weak))
class WEAK A {
virtual void foo();
};
class B : public A {
virtual void foo();
};
void A::foo() { }
void B::foo() { }