summaryrefslogtreecommitdiff
path: root/testsuites/libtests/dl09/dl-o4.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/dl09/dl-o4.c')
-rw-r--r--testsuites/libtests/dl09/dl-o4.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/testsuites/libtests/dl09/dl-o4.c b/testsuites/libtests/dl09/dl-o4.c
index 60ada7ac68..9fea2e5d5c 100644
--- a/testsuites/libtests/dl09/dl-o4.c
+++ b/testsuites/libtests/dl09/dl-o4.c
@@ -14,10 +14,10 @@
#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
-int dl04_unresolv_1;
+int dl04_unresolv_1 = 12345;
float dl04_unresolv_2;
-char dl04_unresolv_3;
-char* dl04_unresolv_4;
+char dl04_unresolv_3 = 'z';
+char* dl04_unresolv_4 = "aBcDeF";
const int dl04_unresolv_5 = 4;
const char* dl04_unresolv_6 = "dl-O4";
@@ -26,13 +26,14 @@ const char* dl04_unresolv_6 = "dl-O4";
int rtems_main_o4 (void)
{
- printf (DL_NAME ": module: %s\n", dl_localise_file (__FILE__));
- printf (DL_NAME ": dl04_unresolv_1: %4u: %p: %d\n", PAINT_VAR (dl04_unresolv_1));
- printf (DL_NAME ": dl04_unresolv_2: %4u: %p: %f\n", PAINT_VAR (dl04_unresolv_2));
- printf (DL_NAME ": dl04_unresolv_3: %4u: %p: %02x\n", PAINT_VAR (dl04_unresolv_3));
- printf (DL_NAME ": dl04_unresolv_4: %4u: %p: %p\n", PAINT_VAR (dl04_unresolv_4));
- printf (DL_NAME ": dl04_unresolv_5: %4u: %p: %d\n", PAINT_VAR (dl04_unresolv_5));
- printf (DL_NAME ": dl04_unresolv_6: %4u: %p: %s\n", PAINT_VAR (dl04_unresolv_6));
+ printf (DL_NAME ": module: %s @ %p\n",
+ dl_localise_file (__FILE__), rtems_main_o4);
+ printf (DL_NAME ": dl04_unresolv_1: %4zu: %p: %d\n", PAINT_VAR (dl04_unresolv_1));
+ printf (DL_NAME ": dl04_unresolv_2: %4zu: %p: %f\n", PAINT_VAR (dl04_unresolv_2));
+ printf (DL_NAME ": dl04_unresolv_3: %4zu: %p: %02x\n", PAINT_VAR (dl04_unresolv_3));
+ printf (DL_NAME ": dl04_unresolv_4: %4zu: %p: %s\n", PAINT_VAR (dl04_unresolv_4));
+ printf (DL_NAME ": dl04_unresolv_5: %4zu: %p: %d\n", PAINT_VAR (dl04_unresolv_5));
+ printf (DL_NAME ": dl04_unresolv_6: %4zu: %p: %s\n", PAINT_VAR (dl04_unresolv_6));
rtems_main_o5 ();