summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/warnings3.C
blob: 07381b9ed689cf63ce7fae5d81a4251992ff725b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// { dg-options "-O2 -Wall" }
// GROUPS passed warnings
class A {
int i;
public:
        void funcA(void) { 
                funcB(); 
        }

	// The compiler should not emit a warning about not being
	// able to inline this function.
        void funcB(void) { 
                i++; 
        }
};