diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-03 20:52:30 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-03 20:52:30 +0000 |
commit | a7052713cafcd5c3d27097a8920c8aaafcb19596 (patch) | |
tree | 016c327ae668a2ce5063dd751c592754829bd578 | |
parent | c44f7fafa476d712551f7e31fcc6c0412c154b2d (diff) | |
download | gcc-a7052713cafcd5c3d27097a8920c8aaafcb19596.tar.gz |
PR c++/39786
* g++.dg/lookup/using22.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153865 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/using22.C | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 30140903d67..6ea645a6ff1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2009-11-03 Jason Merrill <jason@redhat.com> + PR c++/39786 + * g++.dg/lookup/using22.C: New. + PR c++/41876 * g++.dg/parse/eh-decl.C: New. diff --git a/gcc/testsuite/g++.dg/lookup/using22.C b/gcc/testsuite/g++.dg/lookup/using22.C new file mode 100644 index 00000000000..2396f9ab185 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/using22.C @@ -0,0 +1,17 @@ +// PR c++/39786 + +namespace A { + char (*f(char *p))[13] { return 0; } +} + +namespace B { + namespace C { + char (*f(int p))[42] { return 0; } + } + using namespace C; +} + +using namespace B; +using namespace A; + +char x[sizeof *::f(0) == 42 ? 1 : -1]; |