Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / eh / anon1.C
blob2a5ef4bc5e37d43fcf2ff09d3b7531a81ae1e1a0
1 // Test that the anonymous namespace isn't mangled with random characters,
2 // but also doesn't get mixed up with an anonymous namespace in another
3 // translation unit.
5 // { dg-do run }
6 // { dg-additional-sources "anon1a.cc" }
8 namespace {
9   struct A
10   {
11     virtual void f();
12   };
14   void A::f() { }
17 extern void g();
19 int main()
21   try {
22     try {
23       g();
24     } catch (A) { __builtin_abort(); }
25   } catch (...) { }