repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged with mainline at revision 128810.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
anonymous-namespace-3.C
blob
fee48b46017df91d0afcf40034a029cac4518f8a
1
// Test for the warning of exposing types from an anonymous namespace
2
// { dg-do compile }
3
//
4
#include <memory>
5
#include "anonymous-namespace-3.h"
6
7
struct B { std::auto_ptr<A> p; };
8
9
#line 10 "foo.C"
10
struct C
11
{ // { dg-warning "uses the anonymous namespace" }
12
std::auto_ptr<A> p;
13
};