Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: runtime/vm/parser_test.cc

Issue 591543002: Fixes compilation error with gcc-4.9 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser_test.cc
===================================================================
--- runtime/vm/parser_test.cc (revision 40506)
+++ runtime/vm/parser_test.cc (working copy)
@@ -19,17 +19,17 @@
void DumpFunction(const Library& lib, const char* cname, const char* fname) {
const String& classname = String::Handle(Symbols::New(cname));
- Class& cls = Class::Handle(lib.LookupClass(classname));
- EXPECT(!cls.IsNull());
-
String& funcname = String::Handle(String::New(fname));
- Function& function = Function::ZoneHandle(cls.LookupStaticFunction(funcname));
- EXPECT(!function.IsNull());
bool retval;
EXPECT(Isolate::Current() != NULL);
LongJumpScope jump;
if (setjmp(*jump.Set()) == 0) {
+ Class& cls = Class::Handle(lib.LookupClass(classname));
+ EXPECT(!cls.IsNull());
+ Function& function =
+ Function::ZoneHandle(cls.LookupStaticFunction(funcname));
+ EXPECT(!function.IsNull());
ParsedFunction* parsed_function =
new ParsedFunction(Isolate::Current(), function);
Parser::ParseFunction(parsed_function);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698