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