Skip to content

Commit bd1da85

Browse files
committed
Add tests for f32 literals
1 parent 2a41fed commit bd1da85

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

bindgen-tests/tests/expectations/tests/infinite-macro.rs

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/headers/infinite-macro.h

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#define INFINITY (1.0f/0.0f)
2+
#define NEG_INFINITY (-1.0f/0.0f)
3+
#define NAN (0.0f/0.0f)
4+
5+
static const float F32_INFINITY = 1.0f / 0.0f;
6+
static const float F32_NEG_INFINITY = -1.0f / 0.0f;
7+
static const float F32_NAN = 0.0f / 0.0f;

0 commit comments

Comments
 (0)