aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/testdata/testprogcxx/traceback.cc
blob: d4bd26cf7682a5f4496b8fea6cf7f8881f2cb96f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

char *p;

static int cxxFunction3() {
	*p = 0;
	return 0;
}

static int cxxFunction2() {
	return cxxFunction3();
}

extern "C"
int cxxFunction1() {
	return cxxFunction2();
}