Skip to content

Commit 1cfaa26

Browse files
committed
Explicit test for _Atomic(_Bool) (for #476)
1 parent 77de509 commit 1cfaa26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_c_parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,12 @@ def test_atomic_specifier(self):
10641064
["Typedef", "atomic_int", ["TypeDecl", ["IdentifierType", ["int"]]]],
10651065
)
10661066

1067+
s = "typedef _Atomic(_Bool) atomic_bool;"
1068+
self.assertEqual(
1069+
self.get_decl(s, 0),
1070+
["Typedef", "atomic_bool", ["TypeDecl", ["IdentifierType", ["_Bool"]]]],
1071+
)
1072+
10671073
s = "typedef _Atomic(_Atomic(_Atomic(int (*)(void)) *) *) t;"
10681074
self.assertEqual(
10691075
self.get_decl(s, 0),

0 commit comments

Comments
 (0)