2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-09-14 07:59:13 +08:00
|
|
|
template<typename T> struct A {
|
|
|
|
struct B { };
|
|
|
|
|
|
|
|
friend struct B;
|
|
|
|
};
|
|
|
|
|
|
|
|
void f() {
|
|
|
|
A<int>::B b;
|
|
|
|
}
|
2009-09-27 04:57:03 +08:00
|
|
|
|
|
|
|
struct C0 {
|
|
|
|
friend struct A<int>;
|
|
|
|
};
|