c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
[gcc.git] / gcc / testsuite / g++.dg / other / dump-ada-spec-3.C
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-ada-spec" } */
3
4 #include <iostream>
5
6 using namespace std;
7
8 class Base {
9 public:
10 int My_V;
11 virtual void Primitive ();
12
13 Base ();
14 };
15
16 void Base::Primitive () {
17 cout << "C++ Primitive " << this->My_V << "\n";
18 }
19
20 Base::Base () {
21 }
22
23 void Dispatch (Base * B) {
24 B->Primitive ();
25 }
26
27 /* { dg-final { cleanup-ada-spec } } */