blob: 6e60a07bc88461d98116c919466ea37465def4ca [file] [log] [blame]
// { dg-do assemble }
// Test that g++ allows friends to use private types in their declarations.
class A {
typedef int I;
friend I f (I);
};
A::I f (A::I);
A::I f (A::I) { return 0; }