Fix compile time warnings for the inferior program.

llvm-svn: 150205
This commit is contained in:
Johnny Chen 2012-02-09 20:29:11 +00:00
parent 25b0742603
commit f4a75d880d
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class CppValueCastTestCase(TestBase):
self.source = 'sbvalue-cast.cpp'; self.source = 'sbvalue-cast.cpp';
self.line = line_number(self.source, '// Set breakpoint here.') self.line = line_number(self.source, '// Set breakpoint here.')
self.exe_name = self.testMethodName self.exe_name = self.testMethodName
self.d_virtual = {'CXX_SOURCES': self.source, 'EXE': self.exe_name, 'CFLAGS_EXTRAS': '-DVIRTUAL=YES'} self.d_virtual = {'CXX_SOURCES': self.source, 'EXE': self.exe_name, 'CFLAGS_EXTRAS': '-DDO_VIRTUAL_VIRTUAL'}
self.d_regular = {'CXX_SOURCES': self.source, 'EXE': self.exe_name} self.d_regular = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
def do_sbvalue_cast (self, exe_name): def do_sbvalue_cast (self, exe_name):

View File

@ -6,7 +6,7 @@
// License. See LICENSE.TXT for details. // License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#ifdef VIRTUAL #ifdef DO_VIRTUAL_INHERITANCE
#define VIRTUAL virtual #define VIRTUAL virtual
#else #else
#define VIRTUAL #define VIRTUAL