2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20091026-1_1.C
blob35ca21859ba714fd114f73cffdc178851b4726ce
1 #include "20091026-1_a.h"
3 #pragma GCC diagnostic ignored "-Wreturn-type"
4 extern cHead networks;
5 class cNetworkType;
6 inline cNetworkType *findNetwork(const char *s)
8   return (cNetworkType *)networks.find(s);
10 int run(const char *opt_network_name)
12   cNetworkType *network = findNetwork(opt_network_name);
13   if (!network)
14     throw 1;