Home
last modified time | relevance | path

Searched refs:get_expr_optimize (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/kernel/tools/
Dcpp.py843 def get_expr_optimize(self, expr, macros=None): member in CppExprTest
851 self.assertEqual(self.get_expr_optimize("0"), "(int 0)")
852 self.assertEqual(self.get_expr_optimize("1"), "(int 1)")
853 self.assertEqual(self.get_expr_optimize("1 && 1"), "(int 1)")
854 self.assertEqual(self.get_expr_optimize("1 && +1"), "(int 1)")
855 self.assertEqual(self.get_expr_optimize("0x1 && 01"), "(oct 01)")
856 self.assertEqual(self.get_expr_optimize("1 && 0"), "(int 0)")
857 self.assertEqual(self.get_expr_optimize("0 && 1"), "(int 0)")
858 self.assertEqual(self.get_expr_optimize("0 && 0"), "(int 0)")
859 self.assertEqual(self.get_expr_optimize("1 || 1"), "(int 1)")
[all …]