Daily bump.
[official-gcc.git] / libgo / runtime / go-assert.c
bloba36f43a75e4b3191232fe0ff8efc3b2a0ca2ffbd
1 /* go-assert.c -- libgo specific assertions
3 Copyright 2010 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
7 #include <stdio.h>
8 #include <stdlib.h>
10 #include "runtime.h"
11 #include "go-assert.h"
13 void
14 __go_assert_fail (const char *file, unsigned int lineno)
16 /* FIXME: Eventually we should dump a stack trace here. */
17 runtime_printf ("%s:%U: libgo assertion failure\n", file, (uint64) lineno);
18 abort ();