github.com/guyezi/gofrontend@v0.0.0-20200228202240-7a62a49e62c0/libgo/go/runtime/testdata/testprogcxx/traceback.cc (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 char *p; 6 7 static int cxxFunction3() { 8 *p = 0; 9 return 0; 10 } 11 12 static int cxxFunction2() { 13 return cxxFunction3(); 14 } 15 16 extern "C" 17 int cxxFunction1() { 18 return cxxFunction2(); 19 }