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
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
blob
2a5ef4bc5e37d43fcf2ff09d3b7531a81ae1e1a0
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
5
// { dg-do run }
6
// { dg-additional-sources "anon1a.cc" }
7
8
namespace {
9
struct A
10
{
11
virtual void f();
12
};
13
14
void A::f() { }
15
}
16
17
extern void g();
18
19
int main()
20
{
21
try {
22
try {
23
g();
24
} catch (A) { __builtin_abort(); }
25
} catch (...) { }
26
}