• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisión92d3852f34e9b71031329209cc5413702e7c8e81 (tree)
Tiempo2022-08-28 23:15:45
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

Implemented test_namespace

Cambiar Resumen

Diferencia incremental

diff -r b637f4ae43de -r 92d3852f34e9 tests/src/test_namespace.c
--- a/tests/src/test_namespace.c Sun Aug 28 17:09:27 2022 +0300
+++ b/tests/src/test_namespace.c Sun Aug 28 17:15:45 2022 +0300
@@ -12,8 +12,12 @@
1212 #include "tests/unity_headers.h"
1313
1414 #include <ctools/namespace.h>
15+#include <ctools/unused.h>
1516
1617
18+CT_BEGIN_NAMESPACE
19+CT_END_NAMESPACE
20+
1721 void setUp(void)
1822 {
1923 }
@@ -24,4 +28,14 @@
2428
2529 void testCompile(void)
2630 {
31+ CT_USING_CT_NAMESPACE
2732 }
33+
34+void testCompile2(void)
35+{
36+ int a;
37+ int b;
38+
39+ b = CT_NAMESPACED(a);
40+ CT_UNUSED(b);
41+}
Show on old repository browser