mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
433da1fc04
They pass fine.
17 lines
250 B
C
17 lines
250 B
C
#include <stdint.h>
|
|
|
|
typedef struct TestStruct {
|
|
uint8_t x;
|
|
int32_t y;
|
|
} TestStruct;
|
|
|
|
typedef int callback(TestStruct s);
|
|
|
|
uint32_t call(callback *c) {
|
|
TestStruct s;
|
|
s.x = 'a';
|
|
s.y = 3;
|
|
|
|
return c(s);
|
|
}
|