Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/inline-ns6.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/13594 (secondary) |
2 | |
3 // { dg-options "" } | |
4 // { dg-do compile } | |
5 | |
6 namespace fool { | |
7 inline namespace foo { | |
8 template <class T> void swap(T, T); | |
9 } | |
10 template <class T> void swap(T); | |
11 } | |
12 | |
13 int main() { | |
14 // we used to fail to look up the associated namespace here | |
15 fool::swap(1, 1); | |
16 } |