OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
anonymous-namespace-3.C
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 // { dg-warning "uses the anonymous namespace" }
11
{
12
std::auto_ptr<A> p;
13
};