summary refs log tree commit diff
path: root/src/test/run-make/extern-fn-with-packed-struct/test.c
blob: 121e48e84e46fd8ba2fbbbbf1eb32c99f4859a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// ignore-license
// Pragma needed cause of gcc bug on windows: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
#pragma pack(1)
struct __attribute__((packed)) Foo {
    char a;
    short b;
    char c;
};

struct Foo foo(struct Foo foo) {
    return foo;
}