test for char const

Signed-off-by: Axel Nennker <axel.nennker@telekom.de>
This commit is contained in:
Axel Nennker
2019-04-13 16:47:43 +02:00
committed by Emilio Cobos Álvarez
parent 28b3eaf4f2
commit 19fd975b6f
5 changed files with 9 additions and 0 deletions
+2
View File
@@ -3,6 +3,8 @@
#include <stdint.h>
#include <stdlib.h>
#define DELIMITER ':'
#define FOO 10
#define ZOM 3.14
+2
View File
@@ -3,6 +3,8 @@
#include <stdint.h>
#include <stdlib.h>
#define DELIMITER ':'
#define FOO 10
#define ZOM 3.14
+2
View File
@@ -2,6 +2,8 @@
#include <cstdint>
#include <cstdlib>
static const wchar_t DELIMITER = ':';
static const int32_t FOO = 10;
static const float ZOM = 3.14;
+2
View File
@@ -3,6 +3,8 @@
#include <stdint.h>
#include <stdlib.h>
#define DELIMITER ':'
#define FOO 10
#define ZOM 3.14
+1
View File
@@ -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)]