summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/blocklist-file.hpp
blob: ad8bcd665c5b68fed5cabc263afea56c4e9c3d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// bindgen-flags: --blocklist-file ".*/blocklisted/file.*" -- -Itests/headers

// Forward declaration of struct that's defined in a blocklisted file.
struct StructWithBlocklistedDefinition;

#include "blocklisted/file.hpp"
#include "blocklisted/fake-stdint.h"

struct SizedIntegers {
    uint8_t x;
    uint16_t y;
    uint32_t z;
};

// Actual definition of struct that has a forward declaration in a blocklisted file.
struct StructWithBlocklistedFwdDecl {
    uint8_t b;
};