summaryrefslogtreecommitdiff
path: root/tests/headers/derive-custom.h
blob: 8c57278cb3fd49e219a19b976580a316ad83aa15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// bindgen-flags: --no-derive-debug --no-derive-copy --default-enum-style rust --no-layout-tests

/** <div rustbindgen derive="Debug"></div> */
struct my_type;

/** <div rustbindgen derive="Clone"></div> */
struct my_type;

struct my_type {
    int a;
};

/**
 * <div rustbindgen derive="Debug"></div>
 * <div rustbindgen derive="Clone"></div>
 */
struct my_type2;

struct my_type2 {
    unsigned a;
};

/**
 * <div rustbindgen derive="Debug" derive="Clone"></div>
 */
struct my_type3 {
    unsigned long a;
};