Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / g++.dg / warn / anonymous-namespace-3.C
blob8b72abdf5d1dfaecf179ddddd5d9885e12eb074b
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"
7 struct B { std::auto_ptr<A> p; };
9 #line 10 "foo.C"
10 struct C                   // { dg-warning "uses the anonymous namespace" }
12   std::auto_ptr<A> p;
15 // { dg-prune-output "auto_ptr. is deprecated" }