anchor.diff:        'var globalVarInitialized=6,globalVarInitialized2=7;'
         'class A{A(){}A.fromFoo(){}static staticfoo(){}foo(){}'
             'static const field=5;}'
  -      'p_globalfoo(){}'
  -      'var p_globalVar;var p_globalVarInitialized=6,p_globalVarInitialized2=7;'
  -      'class p_A{p_A(){}p_A.p_fromFoo(){}static p_staticfoo(){}foo(){}'
  -          'static const p_field=5;}'
  -      'main(){p_globalVar;p_globalVarInitialized;'
  -         'p_globalVarInitialized2;p_globalfoo();'
  -         'p_A.p_field;p_A.p_staticfoo();'
  -         'new p_A();new p_A.p_fromFoo();new p_A().foo();'
  +      'A_globalfoo(){}'
  +      'var A_globalVar;var A_globalVarInitialized=6,A_globalVarInitialized2=7;'
  +      'class A_A{A_A(){}A_A.A_fromFoo(){}static A_staticfoo(){}foo(){}'
  +          'static const A_field=5;}'
  +      'main(){A_globalVar;A_globalVarInitialized;'
  +         'A_globalVarInitialized2;A_globalfoo();'
  +         'A_A.A_field;A_A.A_staticfoo();'
  +         'new A_A();new A_A.A_fromFoo();new A_A().foo();'
            'globalVar;globalVarInitialized;globalVarInitialized2;globalfoo();'
            'A.field;A.staticfoo();'
            'new A();new A.fromFoo();new A().foo();}';
  
positive.code: }
  ''';
    var expectedResult =
      'p_main(){}'
      'main(){p_main();}';
    testDart2DartWithLibrary(mainSrc, librarySrc,
        continuation: (String result) { Expect.equals(expectedResult, result); });
  }
  
negative.code:   print('local');
  }
  ''';
    var expectedResult = "A_print(x){throw 'fisk';}"
        "main(){print('corelib');A_print('local');}";
    testDart2Dart(src,
        continuation: (String result) { Expect.equals(expectedResult, result); });
  }
  