[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / eh / anon2.C
blob9ff9ee3ab7f97a5258811852273c79eec08eeabe
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.
4 // { dg-final { scan-assembler "\\*N12_GLOBAL__N_11AE" } }
6 namespace {
7   struct A
8   {
9     virtual void f();
10   };
12   void A::f() { }
15 extern void g();
17 int main()
19   try {
20     try {
21       g();
22     } catch (A) { __builtin_abort(); }
23   } catch (...) { }