1/* 2 * Public Domain 2003 Dale Rahn 3 * 4 * $OpenBSD: ab.C,v 1.5 2017/08/07 16:33:52 bluhm Exp $ 5 */ 6 7#include <cstdlib> 8#include <iostream> 9#include "aa.h" 10#include "ab.h" 11 12using namespace std; 13 14extern int a; 15 16BB::BB(const char *str) 17{ 18 if (a == 0) { 19 cout << "A not initialized in B constructors " << a << "\n"; 20 exit(1); 21 } 22} 23 24BB ab("local"); 25AA aa("B"); 26