8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/warn7.C

15 lines
166 B
C++
Raw Normal View History

1997-08-19 03:34:40 -04:00
// Build don't link:
// Special g++ Options: -Wall
const int& foo() {
extern int bar;
return bar;
}
const int* baz() {
extern int bar;
return &bar;
}