// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null template struct super { int Y; void foo(); }; template struct test : virtual super {}; extern test X; void foo() { X.foo(); }