test for char const
Signed-off-by: Axel Nennker <axel.nennker@telekom.de>
This commit is contained in:
committed by
Emilio Cobos Álvarez
parent
28b3eaf4f2
commit
19fd975b6f
@@ -3,6 +3,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define DELIMITER ':'
|
||||
|
||||
#define FOO 10
|
||||
|
||||
#define ZOM 3.14
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define DELIMITER ':'
|
||||
|
||||
#define FOO 10
|
||||
|
||||
#define ZOM 3.14
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define DELIMITER ':'
|
||||
|
||||
#define FOO 10
|
||||
|
||||
#define ZOM 3.14
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user