gcc/testsuite/g++.dg/lto/20091026-1_1.C
raw| 1 | #include "20091026-1_a.h" |
| 2 | |
| 3 | #pragma GCC diagnostic ignored "-Wreturn-type" |
| 4 | extern cHead networks; |
| 5 | class cNetworkType; |
| 6 | inline cNetworkType *findNetwork(const char *s) |
| 7 | { |
| 8 | return (cNetworkType *)networks.find(s); |
| 9 | } |
| 10 | int run(const char *opt_network_name) |
| 11 | { |
| 12 | cNetworkType *network = findNetwork(opt_network_name); |
| 13 | if (!network) |
| 14 | throw 1; |
| 15 | } |
| 16 |