summaryrefslogtreecommitdiff
path: root/tests/test_c_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_c_generator.py')
-rw-r--r--tests/test_c_generator.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_c_generator.py b/tests/test_c_generator.py
index fb9499a..2095e63 100644
--- a/tests/test_c_generator.py
+++ b/tests/test_c_generator.py
@@ -96,6 +96,27 @@ class TestCtoC(unittest.TestCase):
self._assert_ctoc_correct('int test(const char* const* arg);')
self._assert_ctoc_correct('int test(const char** const arg);')
+ # FIXME: These require custom equality comparison.
+ # def test_alignment(self):
+ # self._assert_ctoc_correct('_Alignas(32) int b;')
+ # self._assert_ctoc_correct('int _Alignas(32) a;')
+ # self._assert_ctoc_correct('_Alignas(32) _Atomic(int) b;')
+ # self._assert_ctoc_correct('_Atomic(int) _Alignas(32) b;')
+ # self._assert_ctoc_correct('_Alignas(long long) int a;')
+ # self._assert_ctoc_correct('int _Alignas(long long) a;')
+ # self._assert_ctoc_correct(r'''
+ # typedef struct node_t {
+ # _Alignas(64) void* next;
+ # int data;
+ # } node;
+ # ''')
+ # self._assert_ctoc_correct(r'''
+ # typedef struct node_t {
+ # void _Alignas(64) * next;
+ # int data;
+ # } node;
+ # ''')
+
def test_ternary(self):
self._assert_ctoc_correct('''
int main(void)