2008-01-16 07:41:28 +08:00
|
|
|
V1 {
|
|
|
|
global:
|
|
|
|
extern "C++"
|
|
|
|
{
|
|
|
|
"bar()";
|
2008-01-19 07:35:09 +08:00
|
|
|
"baz(int*)";
|
2008-01-16 07:41:28 +08:00
|
|
|
};
|
|
|
|
foo;
|
|
|
|
blaza*;
|
|
|
|
bar*;
|
2008-01-19 07:35:09 +08:00
|
|
|
# Make sure we parse "extern" when it's not first thing in the section.
|
|
|
|
extern "C++"
|
|
|
|
{
|
|
|
|
myns::*;
|
|
|
|
};
|
2008-01-16 07:41:28 +08:00
|
|
|
# Would be a keyword in a linker script.
|
|
|
|
SECTIONS;
|
|
|
|
sizeof_headers;
|
|
|
|
# Crazy globbiness
|
2008-07-01 04:59:54 +08:00
|
|
|
glob*f[^A-Zo]st?ff;
|
2008-01-16 07:41:28 +08:00
|
|
|
|
|
|
|
local:
|
|
|
|
*foo*;
|
|
|
|
};
|
|
|
|
|
|
|
|
V2 {
|
|
|
|
global:
|
|
|
|
extern "C++" {
|
|
|
|
otherns::stuff;
|
|
|
|
};
|
|
|
|
blaz*;
|
2008-01-24 08:15:00 +08:00
|
|
|
local:
|
|
|
|
_[^A-Z]*;
|
2008-01-16 07:41:28 +08:00
|
|
|
} V1;
|