Last change
on this file since 96de72b was
85a95cc,
checked in by Peter A. Buhr <pabuhr@…>, 21 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 | |
---|
3 | typedef struct /* anonymous */ { |
---|
4 | int some_int; |
---|
5 | float a_float; |
---|
6 | } name_but_a_typedefed_t; |
---|
7 | |
---|
8 | extern name_but_a_typedefed_t a_typedefed_global; |
---|
9 | |
---|
10 | // Must be extern C to prevent name mangling. |
---|
11 | extern "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.