Searched refs:statement (Results 1 - 9 of 9) sorted by relevance

/gem5/ext/googletest/googletest/include/gtest/
H A Dgtest-death-test.h165 // Asserts that a given statement causes the program to exit, with an
168 # define ASSERT_EXIT(statement, predicate, regex) \
169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
173 # define EXPECT_EXIT(statement, predicate, regex) \
174 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
176 // Asserts that a given statement causes the program to exit, either by
179 # define ASSERT_DEATH(statement, regex) \
180 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
184 # define EXPECT_DEATH(statement, regex) \
185 EXPECT_EXIT(statement,
[all...]
H A Dgtest-spi.h117 // statement will cause exactly one fatal Google Test failure with 'substr'
124 // The verification of the assertion is done correctly even when the statement
128 // - 'statement' cannot reference local non-static variables or
130 // - 'statement' cannot return a value.
138 #define EXPECT_FATAL_FAILURE(statement, substr) \
142 static void Execute() { statement; }\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
159 static void Execute() { statement; }\
174 // statement will cause exactly one non-fatal Google Test failure with 'substr'
181 // 'statement' i
[all...]
H A Dgtest.h226 // Then a statement EXPECT_FALSE(IsEven(Fib(6))) will print
1836 // * {ASSERT|EXPECT}_THROW(statement, expected_exception):
1837 // Tests that the statement throws the expected exception.
1838 // * {ASSERT|EXPECT}_NO_THROW(statement):
1839 // Tests that the statement doesn't throw any exception.
1840 // * {ASSERT|EXPECT}_ANY_THROW(statement):
1841 // Tests that the statement throws an exception.
1843 #define EXPECT_THROW(statement, expected_exception) \
1844 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1845 #define EXPECT_NO_THROW(statement) \
[all...]
/gem5/src/mem/slicc/ast/
H A DStatementListAST.py41 for statement in self.statements:
42 statement.generate(code, return_type)
45 for statement in self.statements:
46 statement.findResources(resources)
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h79 static bool Create(const char* statement, const RE* regex,
143 virtual bool Create(const char* statement, const RE* regex,
150 virtual bool Create(const char* statement, const RE* regex,
158 // Traps C++ exceptions escaping statement and reports them as test
161 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
163 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
168 "death test statement. Exception message: %s\n", \
178 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
179 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement)
185 # define GTEST_DEATH_TEST_(statement, predicat
[all...]
H A Dgtest-internal.h1119 // statement if it returns or throws (or doesn't return or throw in some
1121 #define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) \
1122 if (::testing::internal::AlwaysTrue()) { statement; }
1124 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1129 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
1136 "Expected: " #statement " throws an exception of type " \
1142 "Expected: " #statement " throws an exception of type " \
1150 #define GTEST_TEST_NO_THROW_(statement, fail) \
1154 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
1161 fail("Expected: " #statement " does
[all...]
/gem5/src/arch/
H A Dmicro_asm.py126 def handle_statement(parser, container, statement):
127 if statement.is_microop:
128 if statement.mnemonic not in parser.microops.keys():
129 raise Exception, "Unrecognized mnemonic: %s" % statement.mnemonic
131 parser.microops[statement.mnemonic]
134 statement.params, {}, parser.symbols)
137 statement.mnemonic)
140 for label in statement.labels:
144 container.add_microop(statement.mnemonic, microop)
148 elif statement
[all...]
/gem5/ext/googletest/googletest/src/
H A Dgtest-death-test.cc226 // to executing the given statement. It is the responsibility of the
249 // RETURNED means that the test statement attempted to execute a return
250 // statement, which is not allowed; THREW means that the test statement
356 bool DeathTest::Create(const char* statement, const RE* regex, argument
359 statement, regex, file, line, test);
390 const char* statement() const { return statement_; } function in class:testing::internal::DeathTestImpl
550 buffer << "Death test: " << statement() << "\n";
561 buffer << " Result: illegal return in test statement.\n"
789 ForkingDeathTest(const char* statement, cons
1171 Create(const char* statement, const RE* regex, const char* file, int line, DeathTest** test) argument
[all...]
/gem5/ext/googletest/googletest/test/
H A Dgtest-death-test_test.cc287 // comprises only a single C++ statement.
297 // doesn't expand into an "if" statement without an "else"
544 // Tests that a compound statement can be used in a death test.
567 // On exit, *aborted will be true iff the EXPECT_DEATH() statement
611 // Tests that death tests report executing 'return' in the statement as
615 "illegal return in test statement.");
845 " Result: illegal return in test statement.\n"
883 virtual bool Create(const char* statement,
999 bool MockDeathTestFactory::Create(const char* /*statement*/,
1095 // executes a return statement
[all...]

Completed in 29 milliseconds