Last change
on this file since 433e2c3 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
|
Rev | Line | |
---|
[d4c8b59] | 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 | |
---|
[85a95cc] | 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.