diff options
author | Eli Bendersky <eliben@gmail.com> | 2021-09-13 08:51:21 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2021-09-13 08:51:21 -0700 |
commit | b249fc58e530f3dcbfc9a4c35f62e641a5d34757 (patch) | |
tree | 8aac9b3207060b150288ac6184d39eab3db018fb /tests/test_c_generator.py | |
parent | 0e4f8ae855a54142e812b4604eca20f186db9fe4 (diff) | |
download | pycparser-b249fc58e530f3dcbfc9a4c35f62e641a5d34757.tar.gz |
Support _Atomic as a qualifier
This adds initial implementation for the _Atomic keyword in C11, only focusing
on the use as qualifier (spec section 6.7.3)
Based on #431 by vit9696. Updates #430
Diffstat (limited to 'tests/test_c_generator.py')
-rw-r--r-- | tests/test_c_generator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_c_generator.py b/tests/test_c_generator.py index 4563523..15a3831 100644 --- a/tests/test_c_generator.py +++ b/tests/test_c_generator.py @@ -91,6 +91,8 @@ class TestCtoC(unittest.TestCase): self._assert_ctoc_correct('int** (*a)(void);') self._assert_ctoc_correct('int** (*a)(void*, int);') self._assert_ctoc_correct('int (*b)(char * restrict k, float);') + self._assert_ctoc_correct('int (*b)(char * _Atomic k, float);') + self._assert_ctoc_correct('int (*b)(char * _Atomic volatile k, float);') self._assert_ctoc_correct('int test(const char* const* arg);') self._assert_ctoc_correct('int test(const char** const arg);') |