Lines Matching refs:test_cxx
125 test_cxx = copy.deepcopy(self.cxx)
127 test_cxx.useCCache(False)
128 test_cxx.useWarnings(False)
132 test_cxx.compile_flags += [('-D%s' % mdef.strip()) for
134 test_cxx.addWarningFlagIfSupported('-Wno-macro-redefined')
142 test_cxx.useModules(False)
145 test_cxx.source_lang = 'objective-c++'
147 test_cxx.compile_flags += ['-fobjc-arc']
149 test_cxx.compile_flags += ['-fno-objc-arc']
150 test_cxx.link_flags += ['-framework', 'Foundation']
163 return self._evaluate_fail_test(test, test_cxx, parsers)
166 test_cxx, parsers)
175 test_cxx, parsers):
184 cmd, out, err, rc = test_cxx.compileLinkTwoSteps(
225 def _evaluate_fail_test(self, test, test_cxx, parsers):
238 if test_cxx.type != 'gcc':
239 test_cxx.flags += ['-fsyntax-only']
241 test_cxx.useVerify()
242 test_cxx.useWarnings()
243 if '-Wuser-defined-warnings' in test_cxx.warning_flags:
244 test_cxx.warning_flags += ['-Wno-error=user-defined-warnings']
256 test_cxx.flags += ['-Werror=unused-result']
257 cmd, out, err, rc = test_cxx.compile(source_path, out=os.devnull)