Lines Matching refs:test_cpp_expr
832 def test_cpp_expr(expr, expected): function
866 test_cpp_expr("0", "(int 0)")
867 test_cpp_expr("1", "(int 1)")
868 test_cpp_expr("-5", "(int -5)")
869 test_cpp_expr("+1", "(int 1)")
870 test_cpp_expr("0U", "(int 0)")
871 test_cpp_expr("015", "(oct 015)")
872 test_cpp_expr("015l", "(oct 015)")
873 test_cpp_expr("0x3e", "(hex 0x3e)")
874 test_cpp_expr("(0)", "(int 0)")
875 test_cpp_expr("1 && 1", "(&& (int 1) (int 1))")
876 test_cpp_expr("1 && 0", "(&& (int 1) (int 0))")
877 test_cpp_expr("EXAMPLE", "(ident EXAMPLE)")
878 test_cpp_expr("EXAMPLE - 3", "(- (ident EXAMPLE) (int 3))")
879 test_cpp_expr("defined(EXAMPLE)", "(defined EXAMPLE)")
880 test_cpp_expr("defined ( EXAMPLE ) ", "(defined EXAMPLE)")
881 test_cpp_expr("!defined(EXAMPLE)", "(! (defined EXAMPLE))")
882 test_cpp_expr("defined(ABC) || defined(BINGO)",
884 test_cpp_expr("FOO(BAR,5)", "(call FOO [BAR,5])")
885 test_cpp_expr("A == 1 || defined(B)",