summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/constant-evaluate.h
blob: 812553ed3eef3b31dc43bc9b724f88c3978ef7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// bindgen-unstable
// bindgen-flags: --rustified-enum ".*"

enum {
  foo = 4,
  bar = 8,
};

typedef unsigned long long EasyToOverflow;
const EasyToOverflow k = 0x80000000;

const EasyToOverflow k_expr = 1ULL << 60;
const EasyToOverflow wow = 1ULL << 31;

const long long BAZ = (1 << foo) | bar;
const double fuzz = (1 + 50.0f);
const char BAZZ = '5';
const char WAT = '\0';

const char* bytestring = "Foo";
const char* NOT_UTF8 = "\xf0\x28\x8c\x28";