aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/obj-c++.dg/method-namespace-2.mm
blob: 3e1c9d123ba2a6570b5d7fb322945207e407c40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Test that qualified type is resolved to its proper type. */
/* { dg-do compile } */

@interface  Object 
{
	int I[100];
}
@end

namespace HC
{

struct Object
{
    void test();
}; 

} // namespace HC

int main()
{
    HC::Object* object;
    object->test();	// Must compile with no error
    return 0;
}