diff options
author | Eli Bendersky <eliben@gmail.com> | 2012-07-07 06:52:23 +0300 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2012-07-07 06:52:23 +0300 |
commit | 5a0abdf57147b14848042b6db8f4b65aa8c44077 (patch) | |
tree | d7fe4cef555a7cafcca6a48759295b121feb9d41 /tests/test_general.py | |
parent | 41434bb58730abf2eb93749b61ab394cb1695af5 (diff) | |
download | pycparser-5a0abdf57147b14848042b6db8f4b65aa8c44077.tar.gz |
Issue 68
Diffstat (limited to 'tests/test_general.py')
-rw-r--r-- | tests/test_general.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_general.py b/tests/test_general.py index bde6798..087681a 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -42,6 +42,10 @@ class TestParsing(unittest.TestCase): self.failUnless(isinstance(ast2, c_ast.FileAST)) + def test_no_real_content_after_cpp(self): + ast = parse_file(self._find_file('empty.h'), use_cpp=True, + cpp_path=CPPPATH) + self.failUnless(isinstance(ast, c_ast.FileAST)) if __name__ == '__main__': unittest.main() |