source: tests/linking/mangling/header.hfa @ 75d874a

ADTast-experimental
Last change on this file since 75d874a was 85a95cc, checked in by Peter A. Buhr <pabuhr@…>, 20 months ago

add test for problem with anonymous naming across compilation units

  • Property mode set to 100644
File size: 314 bytes
Line 
1#pragma once
2
3typedef struct /* anonymous */ {
4        int some_int;
5        float a_float;
6} name_but_a_typedefed_t;
7
8extern name_but_a_typedefed_t a_typedefed_global;
9
10// Must be extern C to prevent name mangling.
11extern "C" {
12        extern struct /* anonymous */ {
13                int some_int;
14                int some_other_int;
15        } a_global_with_no_type;
16}
Note: See TracBrowser for help on using the repository browser.