fix reversal of specifiers & qualifiers in C generation
diff --git a/tests/test_c_parser.py b/tests/test_c_parser.py
index efa6a80..4fc7f36 100644
--- a/tests/test_c_parser.py
+++ b/tests/test_c_parser.py
@@ -207,13 +207,13 @@
['Decl', 'a', ['TypeDecl', ['IdentifierType', ['int']]]])
self.assertEqual(self.get_decl('unsigned int a;'),
- ['Decl', 'a', ['TypeDecl', ['IdentifierType', ['int', 'unsigned']]]])
+ ['Decl', 'a', ['TypeDecl', ['IdentifierType', ['unsigned', 'int']]]])
self.assertEqual(self.get_decl('_Bool a;'),
['Decl', 'a', ['TypeDecl', ['IdentifierType', ['_Bool']]]])
self.assertEqual(self.get_decl('float _Complex fcc;'),
- ['Decl', 'fcc', ['TypeDecl', ['IdentifierType', ['_Complex', 'float']]]])
+ ['Decl', 'fcc', ['TypeDecl', ['IdentifierType', ['float', '_Complex']]]])
self.assertEqual(self.get_decl('char* string;'),
['Decl', 'string',
@@ -337,7 +337,7 @@
['Decl', 'k',
['PtrDecl',
['FuncDecl',
- [['Decl', ['volatile', 'const'], 'q',
+ [['Decl', ['const', 'volatile'], 'q',
['TypeDecl', ['IdentifierType', ['int']]]]],
['TypeDecl', ['IdentifierType', ['int']]]]]])
@@ -671,7 +671,7 @@
['Typedef', 'Hash',
['TypeDecl', ['Struct', 'tagHash',
[['Decl', 'table_size',
- ['TypeDecl', ['IdentifierType', ['int', 'unsigned']]]],
+ ['TypeDecl', ['IdentifierType', ['unsigned', 'int']]]],
['Decl', 'heads',
['PtrDecl', ['PtrDecl', ['TypeDecl', ['IdentifierType', ['Node']]]]]]]]]])