From 19fd975b6f214f16a9bfe187bda7d5e106c661a3 Mon Sep 17 00:00:00 2001 From: Axel Nennker Date: Sat, 13 Apr 2019 16:47:43 +0200 Subject: [PATCH] test for char const Signed-off-by: Axel Nennker --- tests/expectations/both/constant.c | 2 ++ tests/expectations/constant.c | 2 ++ tests/expectations/constant.cpp | 2 ++ tests/expectations/tag/constant.c | 2 ++ tests/rust/constant.rs | 1 + 5 files changed, 9 insertions(+) diff --git a/tests/expectations/both/constant.c b/tests/expectations/both/constant.c index e2f8cfd..26993fe 100644 --- a/tests/expectations/both/constant.c +++ b/tests/expectations/both/constant.c @@ -3,6 +3,8 @@ #include #include +#define DELIMITER ':' + #define FOO 10 #define ZOM 3.14 diff --git a/tests/expectations/constant.c b/tests/expectations/constant.c index cb6f6cf..4e4b6d3 100644 --- a/tests/expectations/constant.c +++ b/tests/expectations/constant.c @@ -3,6 +3,8 @@ #include #include +#define DELIMITER ':' + #define FOO 10 #define ZOM 3.14 diff --git a/tests/expectations/constant.cpp b/tests/expectations/constant.cpp index 5d88820..f81fabe 100644 --- a/tests/expectations/constant.cpp +++ b/tests/expectations/constant.cpp @@ -2,6 +2,8 @@ #include #include +static const wchar_t DELIMITER = ':'; + static const int32_t FOO = 10; static const float ZOM = 3.14; diff --git a/tests/expectations/tag/constant.c b/tests/expectations/tag/constant.c index 80a8ea0..0208c5d 100644 --- a/tests/expectations/tag/constant.c +++ b/tests/expectations/tag/constant.c @@ -3,6 +3,8 @@ #include #include +#define DELIMITER ':' + #define FOO 10 #define ZOM 3.14 diff --git a/tests/rust/constant.rs b/tests/rust/constant.rs index ee67081..4464306 100644 --- a/tests/rust/constant.rs +++ b/tests/rust/constant.rs @@ -1,5 +1,6 @@ const FOO: i32 = 10; const BAR: &'static str = "hello world"; +pub const DELIMITER: char = ':'; const ZOM: f32 = 3.14; #[repr(C)]