aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/warnings3.C
blob: 14fe997854778b99cdbdd742321b39312b0dff61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link: 
// Special g++ 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++; 
        }
};