source: tests/linking/mangling/main.cfa@ 3a7aa94

Last change on this file since 3a7aa94 was 85a95cc, checked in by Peter A. Buhr <pabuhr@…>, 3 years ago

add test for problem with anonymous naming across compilation units

  • Property mode set to 100644
File size: 332 bytes
RevLine 
[d4c8b59]1#include <fstream.hfa>
2
[85a95cc]3static struct { int a; } test; // purposefully before the include to force anonymous name numbering
[d4c8b59]4
5#include "header.hfa"
6
7int main() {
8 a_global_with_no_type.some_int = 6;
9 a_global_with_no_type.some_other_int = 7;
10
11 a_typedefed_global.some_int = 8;
12 a_typedefed_global.a_float = 9.0f;
13
14 sout | "Done!";
[e1d66c84]15}
Note: See TracBrowser for help on using the repository browser.