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