gcc/testsuite/g++.dg/lookup/anon5.C
raw| 1 | // PR c++/28409 |
| 2 | // shouldIbevisible should be emitted because it's an extern "C" decl with |
| 3 | // external linkage, even though it's in the anonymous namespace. |
| 4 | |
| 5 | namespace |
| 6 | { |
| 7 | extern "C" int shouldIbevisible() |
| 8 | { |
| 9 | return 0; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | namespace t |
| 14 | { |
| 15 | extern "C" int shouldIbevisible(void); |
| 16 | } |
| 17 | |
| 18 | int main(void) |
| 19 | { |
| 20 | return t::shouldIbevisible(); |
| 21 | } |