diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-22 12:58:12 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-23 10:22:08 +0100 |
commit | b83da2729fc83663f979da05201920e039ae3c3f (patch) | |
tree | 27e1c8b1b7f0fef74b064740238da843d4cfc1f6 /tests/headers/constant-evaluate.h | |
parent | 7373a4258f652c23e5fe00ad14740393caa40082 (diff) |
Unify under the `bindgen` name.
Diffstat (limited to 'tests/headers/constant-evaluate.h')
-rw-r--r-- | tests/headers/constant-evaluate.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/headers/constant-evaluate.h b/tests/headers/constant-evaluate.h new file mode 100644 index 00000000..f9f1fa66 --- /dev/null +++ b/tests/headers/constant-evaluate.h @@ -0,0 +1,19 @@ +// bindgen-unstable + +enum { + foo = 4, + bar = 8, +}; + +typedef unsigned long long EasyToOverflow; +const EasyToOverflow k = 0x80000000; + +const EasyToOverflow k_expr = 1ULL << 60; + +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"; |