Clang Project

clang_source_code/test/CXX/temp/temp.res/temp.local/p9.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2struct A { 
3  struct B { void f(); }; 
4  int a; 
5  int Y;
6};
7
8template<class B, class a> struct X : A { 
9  B b;  // A's B 
10  a c;  // expected-error{{unknown type name 'a'}} 
11
12  void g() {
13    b.g(); // expected-error{{no member named 'g' in 'A::B'}}
14  }
15};
16