Add comment for build_and_run_with_source_atoms_expr() and remove redundant #include from basic_type.cpp.

llvm-svn: 147895
This commit is contained in:
Johnny Chen 2012-01-10 23:36:06 +00:00
parent ee65b744e8
commit c260232dfa
2 changed files with 1 additions and 2 deletions

View File

@ -57,6 +57,7 @@ class GenericTester(TestBase):
self.build_and_run_with_source_atoms_expr(source, atoms, expr=True, dsym=dsym, bc=bc, qd=qd)
def build_and_run_with_source_atoms_expr(self, source, atoms, expr, dsym=True, bc=False, qd=False):
# See also Makefile and basic_type.cpp:177.
if bc:
d = {'CXX_SOURCES': source, 'EXE': self.exe_name, 'CFLAGS_EXTRAS': '-DTEST_BLOCK_CAPTURED_VARS'}
else:

View File

@ -175,8 +175,6 @@ main (int argc, char const *argv[])
puts("About to exit, break here to check values..."); // Here is the line we will break on to check variables.
#ifdef TEST_BLOCK_CAPTURED_VARS
#include <dispatch/dispatch.h>
void (^myBlock)() = ^() {
printf ("%s: a = '" T_PRINTF_FORMAT "'\n", T_CSTR, a);
printf ("%s*: %p => *a_ptr = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_ptr, *a_ptr);