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

15 lines
254 B
C++
Raw Normal View History

1997-08-19 03:34:40 -04:00
namespace { // WARNING - namespaces mostly broken
int i = 10;
enum fish { one = 1, two = 2, red = 3, blue = 4 };
}
extern "C" void printf (const char *, ...);
int main(void)
{
if (i != 10) {
return 1;
}
if (one != 1) {
return 2;
}
}